Home
last modified time | relevance | path

Searched refs:block_size_bytes (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/km_openssl/
Dblock_cipher_operation.cpp195 if (!output->reserve(block_size_bytes())) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in Finish()
211 assert(static_cast<size_t>(output_written) <= block_size_bytes()); in Finish()
254 aad_block_buf_.reset(new (std::nothrow) uint8_t[block_size_bytes()]); in InitializeCipher()
269 if (block_mode_ != KM_MODE_GCM && iv_blob.data_length != block_size_bytes()) { in GetIv()
270 LOG_E("Expected %d-byte IV for operation, but got %d bytes", block_size_bytes(), in GetIv()
307 if (aad_block_buf_len_ == block_size_bytes() && !ProcessBufferedAadBlock(error)) in HandleAad()
311 size_t block_size = block_size_bytes(); in HandleAad()
346 blocks * block_size_bytes())) { in ProcessAadBlocks()
358 size_t to_buffer = min(block_size_bytes() - aad_block_buf_len_, aad->data_length); in FillBufferedAadBlock()
372 if (!output->reserve(input_length + block_size_bytes())) { in InternalUpdate()
[all …]
Dblock_cipher_operation.h41 virtual size_t block_size_bytes() const = 0;
103 size_t block_size_bytes() const { return cipher_description_.block_size_bytes(); } in block_size_bytes() function
Daes_operation.h35 size_t block_size_bytes() const override { return AES_BLOCK_SIZE; } in block_size_bytes() function
Dtriple_des_operation.h35 size_t block_size_bytes() const override { return 8 /* DES_BLOCK_SIZE */; } in block_size_bytes() function