Skip to main content

decode_pkcs5

Function decode_pkcs5 

Source
pub fn decode_pkcs5(
    secret: &[u8],
    password: Option<&str>,
    enc: Encryption,
) -> Result<PrivateKey, Error>
Expand description

Decode a secret key in the PKCS#5 format, possibly deciphering it using the supplied password.