Function ring::pkcs8::unwrap_key

source ยท
pub(crate) fn unwrap_key<'a>(
    template: &Template,
    version: Version,
    input: Input<'a>,
) -> Result<(Input<'a>, Option<Input<'a>>), KeyRejected>
Expand description

Parses an unencrypted PKCS#8 private key, verifies that it is the right type of key, and returns the key value.

PKCS#8 is specified in RFC 5958.