Function argon2id

Source
pub fn argon2id(
    ctx: Option<&LibCtxRef>,
    pass: &[u8],
    salt: &[u8],
    ad: Option<&[u8]>,
    secret: Option<&[u8]>,
    iter: u32,
    lanes: u32,
    memcost: u32,
    out: &mut [u8],
) -> Result<(), ErrorStack>
Expand description

Derives a key using the argon2id algorithm.

To use multiple cores to process the lanes in parallel you must set a global max thread count using OSSL_set_max_threads. On builds with no threads all lanes will be processed sequentially.

Requires OpenSSL 3.2.0 or newer.