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
Octet-String-to-Elliptic-Curve-Point encoding algorithms.
This crate requires Rust 1.57 at a minimum.
We may change the MSRV in the future, but it will be accompanied by a minor version bump.
Licensed under either of:
at your option.
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.
Additionally, when both the
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.
- Type aliases for many constants.
- Support for the SEC1
- SEC1 elliptic curve private key.
- Elliptic curve parameters as described in RFC5480 Section 2.1.1:
- Error type
- Line endings: variants of newline characters that can be used with Base64.
ObjectIdentifierfor elliptic curve public key cryptography (
- Parse an
EcPrivateKeyfrom a SEC1-encoded document.
- Serialize a
EcPrivateKeyto a SEC1 encoded document.
- Result type with