Skip to main content

unpad_data

Function unpad_data 

Source
pub fn unpad_data(buf: &[u8]) -> Result<&[u8], SecureSessionError>
Expand description

Strip 0x80-padding from decrypted DATA. Returns the stripped slice.

Errors if the trailing bytes do not match 0x80 [0x00]*.