Expand description
PKCS#8 private key encoding support.
Modules§
- der
- RustCrypto: ASN.1 DER
- spki
- RustCrypto: X.509 Subject Public Key Info (SPKI)
Structs§
- Document
- ASN.1 DER-encoded document.
- Object
Identifier - Object identifier (OID).
- Private
KeyInfo - PKCS#8
PrivateKeyInfo. - Secret
Document - Secret
Documenttype. - Subject
Public KeyInfo - X.509
SubjectPublicKeyInfo(SPKI) as defined in RFC 5280 § 4.1.2.7.
Enums§
- Error
- Error type
- KeyError
- Key-related errors.
- Line
Ending - Line endings: variants of newline characters that can be used with Base64.
- Version
- Version identifier for PKCS#8 documents.
Constants§
- SEED_
TAG_ 🔒NUMBER - Tag number for the seed value.
Traits§
- Associated
Oid - A trait which associates an OID with a type.
- Decode
Private Key - Parse a private key object from a PKCS#8 encoded document.
- Decode
Public Key - Parse a public key object from an encoded SPKI document.
- Encode
Private Key - Serialize a private key object to a PKCS#8 encoded document.
- Encode
Public Key - Serialize a public key object to a SPKI-encoded document.
Type Aliases§
- Algorithm
Identifier Ref AlgorithmIdentifierreference which hasAnyRefparameters.- Private
KeyInfo Owned PrivateKeyInfowithAnyalgorithm parameters, andBox<[u8]>key.- Private
KeyInfo Ref PrivateKeyInfowithAnyRefalgorithm parameters, and&[u8]key.- Result
- Result type
- Seed
String 🔒 - ML-KEM seed serialized as ASN.1.
- Subject
Public KeyInfo Ref SubjectPublicKeyInfowithAnyRefalgorithm parameters, andBitStringRefparams.