Crate sec1[][src]

Expand description

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

This crate requires Rust 1.51 at a minimum.

Re-exports

pub use der;
pub use self::point::EncodedPoint;

Modules

Type aliases for many constants.

Support for the SEC1 Elliptic-Curve-Point-to-Octet-String and Octet-String-to-Elliptic-Curve-Point encoding algorithms.

Structs

SEC1 elliptic curve private key.

SEC1 EC PRIVATE KEY document.

Enums

Elliptic curve parameters as described in RFC5480 Section 2.1.1:

Error type

Line endings.

Traits

Parse an EcPrivateKey from a SEC1-encoded document.

Serialize a EcPrivateKey to a SEC1 encoded document.

Type Definitions

Result type with sec1 crate’s Error type.