Expand description
§RustCrypto: SEC1 Elliptic Curve Cryptography Formats
§About
Pure Rust implementation of SEC1: Elliptic Curve Cryptography encoding
formats including ASN.1 DER-serialized private keys (also described in
RFC5915) as well as the Elliptic-Curve-Point-to-Octet-String and
Octet-String-to-Elliptic-Curve-Point encoding algorithms.
§Minimum Supported Rust Version (MSRV) Policy
MSRV increases are not considered breaking changes and can happen in patch releases.
The crate MSRV accounts for all supported targets and crate feature combinations, excluding explicitly unstable features.
§License
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.
§serde support
When the serde feature of this crate is enabled, the EncodedPoint
type receives impls of serde::Serialize and serde::Deserialize.
Additionally, when both the alloc and serde features are enabled, the
serializers/deserializers will autodetect if a “human friendly” textual
encoding is being used, and if so encode the points as hexadecimal.
Re-exports§
pub use crate::point::EncodedPoint;pointpub use der;derpub use der::pem;pem
Modules§
- consts
point - point
point - Support for the SEC1
Elliptic-Curve-Point-to-Octet-StringandOctet-String-to-Elliptic-Curve-Pointencoding algorithms.
Structs§
- EcPrivate
Key der - SEC1 elliptic curve private key.
Enums§
- EcParameters
der - Elliptic curve parameters as described in RFC5480 Section 2.1.1:
- Error
- Error type
- Line
Ending pem - Line endings: variants of newline characters that can be used with Base64.
Constants§
- ALGORITHM_
OID der - Algorithm
ObjectIdentifierfor elliptic curve public key cryptography (id-ecPublicKey).
Traits§
- Decode
EcPrivate Key der - Parse an
EcPrivateKeyfrom a SEC1-encoded document. - Encode
EcPrivate Key allocandder - Serialize a
EcPrivateKeyto a SEC1 encoded document.