crypto-bigint
crypto-bigint copied to clipboard
Cryptography-oriented big integer library with constant-time, stack-allocated (no_std-friendly) implementations of modern formulas
Missing impl `Serialize` and `Deserialize`
Some algorithms have vartime components on non-secret data requiring associated use of vartime functionality. e.g. where the vartime use is associated with non-secret dependant data. This could be treated similarly...
Version: `0.6.0-pre.12`. I am trying to define pre-computed SSH DH groups 1 and 14-18 parameters using `ConstMontyParams` because groups 15-18 take a long time to compute--more than 5s (debug) for...
[NIST.SP.800-56Br2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-56Br2.pdf) - Appendix C.2 - Deterministic Prime-Factor Recovery The second part would require GCD(modulus - 1, public * private exp - 1) ``` 1. Let a = (de – 1)...
Hello - just learning to use this library + handle the fixed precision and initialize correctly I think :) Let's say per [NIST.SP.800-56Br2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-56Br2.pdf) - Appendix C.2 - Deterministic Prime-Factor Recovery...
This is a ticket for tracking desired new features for `crypto-bigint` and which algorithms should be used in order to implement particular features. Unless otherwise stated, these features are implied...
In my usage with `BoxedUint` I am really missing comparison and calculations with `u32` and `u64` at least, currently it is quite inefficient as I have to do the following...
From https://github.com/RustCrypto/crypto-bigint/issues/577#issuecomment-2016550215: > HACL* extracted as pure safe Rust (dubbed "HACL-rs") lives here: https://github.com/hacl-star/hacl-star/tree/afromher_rs/dist/rs > > In there, you'll find bignums in src/hacl: > > - bignum.rs, bignum64.rs: variable-length, 32...
## Description When using the `impl_modulus!` macro with U3072 and bigger types, the `R2` constant computation takes several seconds. The Rust compilers version >= 1.73 with an error. In some...
Though we should definitely maintain a baseline profile which is pure Rust, it would be nice to be able to leverage optimized assembly implementations, and ideally formally verified ones which...