Skip to main content

Module pkcs8

Module pkcs8 

Source
Expand description

PKCS#8 encoding support.

When the pkcs8 feature of this crate is enabled, the DecodePrivateKey trait is impl’d for DecapsulationKey, and the DecodePublicKey trait is impl’d for EncapsulationKey.

When both the pkcs8 and alloc features are enabled, the EncodePrivateKey trait is impl’d for DecapsulationKey, and the EncodePublicKey trait is impl’d for EncapsulationKey.

Constants§

SEED_TAG_NUMBER 🔒
Tag number for the seed value.

Traits§

AssociatedAlgorithmIdentifier
Returns AlgorithmIdentifier associated with the structure.
AssociatedOid
A trait which associates an OID with a type.
DecodePrivateKey
Parse a private key object from a PKCS#8 encoded document.
DecodePublicKey
Parse a public key object from an encoded SPKI document.
EncodePrivateKey
Serialize a private key object to a PKCS#8 encoded document.
EncodePublicKey
Serialize a public key object to a SPKI-encoded document.

Type Aliases§

SeedString 🔒
ML-KEM seed serialized as ASN.1.