Skip to main content

load_private_key

Function load_private_key 

Source
pub fn load_private_key(
    p: &Policy,
    der: PrivateKeyDer<'static>,
) -> Result<Arc<dyn SigningKey>, CryptoError>
Expand description

Loads a private key into a signing key that signs only with a scheme in p.signature_schemes. The key’s algorithm is not checked against any profile; Resolved::certified_key checks it.