Expand description
§RustCrypto: Brainpool P-384 elliptic curves
Brainpool P-384 (brainpoolP384r1 and brainpoolP384t1) elliptic curve types
implemented in terms of traits from the elliptic-curve crate.
§License
All crates licensed under either of
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
§Backends
This crate has support for two different field arithmetic backends which can be selected using
cfg(bp384_backend), e.g. to select the bigint backend:
$ RUSTFLAGS='--cfg bp384_backend="bigint"' cargo testOr it can be set through .cargo/config:
[build]
rustflags = ['--cfg', 'bp384_backend="bigint"']The available backends are:
bigint: experimental backend provided by crypto-bigint. May offer better performance in some cases along with smaller code size, but might also have bugs.fiat(default): formally verified implementation synthesized by fiat-crypto which should be correct for all inputs (though there’s a possibility of bugs in the code which glues to it)
Re-exports§
pub use crate::r1::BrainpoolP384r1;pub use crate::t1::BrainpoolP384t1;pub use elliptic_curve;pub use elliptic_curve::pkcs8;pkcs8
Modules§
- r1
- brainpoolP384r1 elliptic curve: verifiably pseudo-random variant
- t1
- brainpoolP384t1 elliptic curve: twisted variant
Structs§
- Scalar
arithmetic - Element in the brainpoolP384 scalar field modulo n
Traits§
- Array
Encoding - Support for encoding a big integer as a
Array.
Type Aliases§
- Field
Bytes - Byte representation of a base/scalar field element of a given curve.
- U384
- 384-bit unsigned big integer.