Registry / crypto / pkcs8
library0.11.0rscratesunverified

Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #8: Private-Key Information Syntax Specification (RFC 5208), with additional support for PKCS#8v2 asymmetric key packages (RFC 5958).

# Cargo.toml [dependencies] pkcs8 = "0.11.0"
INSTALL
IMPORT
SIG · PKCS8
P
pkcs8
cryptorustv0.11.0
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.

PrivateKeyInfo
use pkcs8::PrivateKeyInfo;

Parse a PKCS#8 private key.

use pkcs8::PrivateKeyInfo; fn main() { let der = &[0x30, 0x0b, 0x02, 0x01, 0x00, 0x04, 0x06, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06]; let pki = PrivateKeyInfo::try_from(der.as_ref()).unwrap(); println!("{:?}", pki); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
Amazon
1
Resources