Skip to main content

encode_pkcs8_expanded_der

Function encode_pkcs8_expanded_der 

Source
pub fn encode_pkcs8_expanded_der(sk: &AgileSecretKey) -> Result<Vec<u8>>
Expand description

Encodes an expanded ML-KEM decapsulation key into RFC 9935 PKCS#8 DER (expandedKey CHOICE tag 0x04).

The key is written directly into the returned buffer (no intermediate copies).