pub fn decrypt_data(
s_enc: &[u8; 16],
iv: &[u8; 16],
ct: &[u8],
) -> Result<Vec<u8>, SecureSessionError>Expand description
Decrypt a DATA payload and strip the 0x80 padding.
Errors if ct.len() is not a positive multiple of 16, or if padding is
malformed after decryption.