Skip to main content

get_kdf_params

Function get_kdf_params 

Source
pub fn get_kdf_params() -> Result<Params, AgentError>
Expand description

Returns Argon2id parameters for key derivation.

Production builds use OWASP-recommended settings (m=64 MiB, t=3). Test and test-utils builds use minimal settings (m=8 KiB, t=1) to keep both unit and integration test suites fast. The parameters are embedded in the encrypted blob, so decryption always uses the values from the blob header rather than this getter.

Args:

  • None

Usage:

let params = get_kdf_params()?;
let argon2 = Argon2::new(Argon2Algorithm::Argon2id, Version::V0x13, params);