Expand description
PKCS#8 private key support.
Implements Ed25519 PKCS#8 private keys as described in RFC8410 Section 7: https://datatracker.ietf.org/doc/html/rfc8410#section-7
§SemVer Notes
The pkcs8 module of this crate is exempted from SemVer as it uses a
pre-1.0 dependency (the pkcs8 crate).
However, breaking changes to this module will be accompanied by a minor version bump.
Please lock to a specific minor version of the ed25519 crate to avoid
breaking changes when using this module.
Re-exports§
pub use pkcs8::spki;
Structs§
- BitString
Ref - ASN.1
BIT STRINGtype. - Document
- ASN.1 DER-encoded document.
- Keypair
Bytes - Ed25519 keypair serialized as bytes.
- Object
Identifier - Object identifier (OID).
- Octet
String Ref - ASN.1
OCTET STRINGtype: borrowed form. - Public
KeyBytes - Ed25519 public key serialized as bytes.
- Secret
Document - Secret
Documenttype.
Enums§
Constants§
- ALGORITHM_
ID - Ed25519 Algorithm Identifier.
- ALGORITHM_
OID - Algorithm
ObjectIdentifierfor the Ed25519 digital signature algorithm (id-Ed25519).
Traits§
- 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§
- Private
KeyInfo Ref PrivateKeyInfowithAnyRefalgorithm parameters, and&[u8]key.- Result
- Result type