Skip to main content

token_open_in_place

Function token_open_in_place 

Source
pub fn token_open_in_place<'t>(
    key: &TokenKey<'_>,
    token: &'t mut [u8],
) -> Result<&'t [u8], TokenOpenError>
Expand description

MAC-verified (constant time) then decrypted in place; the plaintext is a sub-slice of token.