Lines Matching refs:data_length
263 if (block_mode_ != KM_MODE_GCM && iv_blob.data_length != block_size_bytes()) { in GetIv()
265 iv_blob.data_length); in GetIv()
269 if (block_mode_ == KM_MODE_GCM && iv_blob.data_length != GCM_NONCE_SIZE) { in GetIv()
271 iv_blob.data_length); in GetIv()
275 iv_ = KeymasterBlob(iv_blob.data, iv_blob.data_length); in GetIv()
306 size_t blocks_to_process = aad.data_length / block_size; in HandleAad()
310 aad.data_length -= blocks_to_process * block_size; in HandleAad()
313 assert(aad.data_length == 0); in HandleAad()
352 size_t to_buffer = min(block_size_bytes() - aad_block_buf_len_, aad->data_length); in FillBufferedAadBlock()
355 aad->data_length -= to_buffer; in FillBufferedAadBlock()
410 output_params->push_back(TAG_NONCE, iv_.data, iv_.data_length); in Begin()
443 if (RAND_bytes(iv_.writable_data(), iv_.data_length) != 1) return TranslateLastOpenSslError(); in GenerateIv()
521 size_t data_length) { in BufferCandidateTagData() argument
522 assert(data_length <= tag_length_ - tag_buf_len_); in BufferCandidateTagData()
523 memcpy(tag_buf_.get() + tag_buf_len_, data, data_length); in BufferCandidateTagData()
524 tag_buf_len_ += data_length; in BufferCandidateTagData()