pub fn encode_pkcs8_both_der(
alg: SignatureAlgorithm,
seed: &[u8; 32],
) -> Result<Vec<u8>>Expand description
Encodes both the 32-byte seed xi and expanded key into RFC 9881 PKCS#8 DER (both tag 0x30).
The seed and the freshly expanded key (borrowed from the typed key, which is wiped on drop) are written directly into the returned buffer (no intermediate copies).