Skip to main content

parse_auth

Function parse_auth 

Source
pub fn parse_auth(payload: &[u8]) -> Result<Auth>
Expand description

Parse an AUTH payload.

A non-empty mode with no matching section length is rejected here; the Argon2id budget is checked by check_argon2_budget, which a reader must call before deriving anything.