AnsweredAssumed Answered

AEAD interface for decryption using the function crypto_aead_decrypt()

Question asked by Samir Samaha on May 11, 2016
Latest reply on May 13, 2016 by bpe

I am using the SEC driver (TALITOS P1020) to encrypt and decrypt the data. I
am using the AEAD interface. For decryption I am using the function
crypto_aead_decrypt() which I guess it expect the encrypted data followed by the digest
(MAC data). My problem is that the digest is truncated. I only receive 12
bytes instead of 16 bytes. My question is how can I tell the driver that the
digest is truncated and only 12 bytes are provided. The error that I am receiving
when I try to decrypt is 74 which is EBADMSG

Outcomes