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]*.
pub fn unpad_data(buf: &[u8]) -> Result<&[u8], SecureSessionError>Strip 0x80-padding from decrypted DATA. Returns the stripped slice.
Errors if the trailing bytes do not match 0x80 [0x00]*.