decode_cookie_advanced

Function decode_cookie_advanced 

Source
pub fn decode_cookie_advanced(
    key: SigningKey,
    name: impl AsRef<[u8]>,
    value: impl AsRef<[u8]>,
    output: &mut [u8],
) -> Result<(), DecodeError>
Expand description

Just like decode_cookie, but advanced.

This function supports running in a no_std environment by taking an output buffer to write into rather than allocating a Vec. It otherwise behaves identically to decode_cookie.

Use decode_buffer_size to determine the required length of the output buffer.

Returns Err(DecodeCookieError) if the output buffer is too small.