11.12.3.4.236. Function sss_se05x_aead_one_go

11.12.3.4.236.1. Function Documentation

sss_status_t sss_se05x_aead_one_go(sss_se05x_aead_t *context, const uint8_t *srcData, uint8_t *destData, size_t size, uint8_t *nonce, size_t nonceLen, const uint8_t *aad, size_t aadLen, uint8_t *tag, size_t *tagLen)

AEAD in one blocking function call. The function blocks current thread until the operation completes or an error occurs.

Return

Status of the operation

Parameters
  • context: Pointer to aead crypto context.

  • srcData: Buffer containing the input data.

  • destData: Buffer containing the output data.

  • size: Size of input and output data buffer in bytes.

  • nonce: The operation nonce or IV. When using internal IV algorithms (only encrypt) for SE051, iv buffer will be filled with genereted Initialization Vector.

  • nonceLen: The length of nonce in bytes. For AES-GCM it must be >= 1. For AES-CCM it must be 7, 8, 9, 10, 11, 12, or 13.

  • aad: Input additional authentication data AAD

  • aadLen: Input size in bytes of AAD

  • tag: Encryption: Output buffer filled with computed tag Decryption: Input buffer filled with received tag

  • tagLen: Length of the tag in bytes. For AES-GCM it must be 4,8,12,13,14,15 or 16. For AES-CCM it must be 4,6,8,10,12,14 or 16.

Return Value