Lines Matching refs:aad
295 keymaster_blob_t aad; in HandleAad() local
296 if (input_params.GetTagValue(TAG_ASSOCIATED_DATA, &aad)) { in HandleAad()
303 FillBufferedAadBlock(&aad); in HandleAad()
309 size_t blocks_to_process = aad.data_length / block_size; in HandleAad()
310 if (blocks_to_process && !ProcessAadBlocks(aad.data, blocks_to_process, error)) in HandleAad()
312 aad.data += blocks_to_process * block_size; in HandleAad()
313 aad.data_length -= blocks_to_process * block_size; in HandleAad()
315 FillBufferedAadBlock(&aad); in HandleAad()
316 assert(aad.data_length == 0); in HandleAad()
354 void BlockCipherEvpOperation::FillBufferedAadBlock(keymaster_blob_t* aad) { in FillBufferedAadBlock() argument
355 size_t to_buffer = min(block_size_bytes() - aad_block_buf_len_, aad->data_length); in FillBufferedAadBlock()
356 memcpy(aad_block_buf_.get() + aad_block_buf_len_, aad->data, to_buffer); in FillBufferedAadBlock()
357 aad->data += to_buffer; in FillBufferedAadBlock()
358 aad->data_length -= to_buffer; in FillBufferedAadBlock()