[][src]Function ring::signature::key_pair_from_pkcs8

pub fn key_pair_from_pkcs8(
    alg: &'static dyn SigningAlgorithm,
    input: Input
) -> Result<KeyPair, Unspecified>

Returns a key for signing that is parsed from a PKCS#8 document.

The key is checked to ensure it is valid for the given algorithm.