Skip to main content

encode_pkcs8_der

Function encode_pkcs8_der 

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

Encodes an SLH-DSA 4n-byte private key into RFC 9909 PKCS#8 DER.

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