Function cellar_pkcs8::unwrap_key [−][src]
pub fn unwrap_key<'a>(
template: &Template,
version: Version,
input: Input<'a>
) -> Result<(Input<'a>, Option<Input<'a>>), KeyRejected>
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.