11.12.3.4.171. Function sss_aead_update

11.12.3.4.171.1. Function Documentation

sss_status_t sss_aead_update(sss_aead_t *context, const uint8_t *srcData, size_t srcLen, uint8_t *destData, size_t *destLen)

AEAD data update. Feeds a new chunk of the data payload. Input data does not have to be a multiple of block size. Subsequent calls to this function are possible. Unless one or more calls of this function have supplied sufficient input data, no output is generated. The integration check is done by sss_aead_finish(). Until then it is not sure if the decrypt data is authentic.

Return

Status of the operation

Parameters
  • context: Pointer to aead crypto context.

  • srcData: Buffer containing the input data.

  • srcLen: Length of the input data in bytes.

  • destData: Buffer containing the output data.

  • [inout] destLen: Length of the output data in bytes. Buffer length on entry, reflects actual output size on return.

Return Value