Home
last modified time | relevance | path

Searched refs:nb_blocks (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/core/crypto/
A Daes-cts.c102 int nb_blocks = 0; in cbc_cts_update() local
110 if (nb_blocks < 2) in cbc_cts_update()
126 (nb_blocks - 1) * block_size, dst); in cbc_cts_update()
130 memcpy(dst + (nb_blocks - 1) * block_size, in cbc_cts_update()
131 dst + (nb_blocks - 2) * block_size, in cbc_cts_update()
136 dst + (nb_blocks - 2) * block_size); in cbc_cts_update()
143 data + (nb_blocks - 2) * block_size, in cbc_cts_update()
158 if (nb_blocks > 2) { in cbc_cts_update()
162 (nb_blocks - 2) * in cbc_cts_update()
171 ((nb_blocks - 2) * block_size)); in cbc_cts_update()
[all …]
/optee_os-3.20.0/core/drivers/imx/dcp/
A Ddcp.c275 unsigned int nb_blocks = 0; in dcp_cmac() local
302 nb_blocks = ROUNDUP(input_size, DCP_AES128_BLOCK_SIZE) / in dcp_cmac()
305 block_complete = nb_blocks && !(input_size % DCP_AES128_BLOCK_SIZE); in dcp_cmac()
306 if (nb_blocks == 0) in dcp_cmac()
307 nb_blocks = 1; in dcp_cmac()
309 for (i = 0; i < nb_blocks - 1; i++) { in dcp_cmac()
527 uint32_t nb_blocks = 0; in dcp_sha_do_update() local
544 nb_blocks = size_total / DCP_SHA_BLOCK_SIZE; in dcp_sha_do_update()
545 size_todo = nb_blocks * DCP_SHA_BLOCK_SIZE; in dcp_sha_do_update()

Completed in 5 milliseconds