Registry / crypto / sec1
library0.8.1rscratesunverified

Pure Rust implementation of SEC1: Elliptic Curve Cryptography encoding formats including ASN.1 DER encoded private keys and Elliptic-Curve-Point-to-Octet-String encoding.

# Cargo.toml [dependencies] sec1 = "0.8.1"
INSTALL
IMPORT
SIG · SEC1
S
sec1
cryptorustv0.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EcPrivateKey
use sec1::EcPrivateKey;

Parses an EC private key from bytes using sec1.

use sec1::EcPrivateKey; fn main() { let private_key_bytes = vec![0u8; 32]; let ec_private_key = EcPrivateKey::try_from(private_key_bytes.as_slice()).unwrap(); println!("EC private key: {:?}", ec_private_key); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
sec1 — cargo add sec1 · libregistry