Skip to main content

validate_pbes2

Function validate_pbes2 

Source
pub(super) fn validate_pbes2(method: &str) -> Result<(), OnePasswordError>
Expand description

Rejects a PBES2 method this module cannot honour.

The web client only implements the SHA-256 variants and throws Invalid PBKDF2 alg on anything else, so an *-HS512 method is rejected rather than guessed at. Both the master keyset and the SRP parameters carry one of these, from different responses, so both have to check.