openssl::pkcs5

Function scrypt

source
pub fn scrypt(
    pass: &[u8],
    salt: &[u8],
    n: u64,
    r: u64,
    p: u64,
    maxmem: u64,
    key: &mut [u8],
) -> Result<(), ErrorStack>
Expand description

Derives a key from a password and salt using the scrypt algorithm.

Requires OpenSSL 1.1.0 or newer.

This corresponds to EVP_PBE_scrypt.