Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/crypto/
Dcrypto_it8xxx2_sha.c55 uint32_t w_input_index; member
91 chip_ctx.w_input_index = 0; in it8xxx2_sha256_init()
129 chip_ctx.w_input_index = 0; in it8xxx2_sha256_module_calculation()
139 chip_ctx.w_input[chip_ctx.w_input_index++] = in it8xxx2_hash_handler()
141 if (chip_ctx.w_input_index >= SHA_SHA256_BLOCK_LEN) { in it8xxx2_hash_handler()
151 memset(&chip_ctx.w_input[chip_ctx.w_input_index], in it8xxx2_hash_handler()
152 0, SHA_SHA256_BLOCK_LEN - chip_ctx.w_input_index); in it8xxx2_hash_handler()
153 chip_ctx.w_input[chip_ctx.w_input_index] = 0x80; in it8xxx2_hash_handler()
155 if (chip_ctx.w_input_index >= 56) { in it8xxx2_hash_handler()
157 memset(&chip_ctx.w_input[chip_ctx.w_input_index], in it8xxx2_hash_handler()
[all …]
Dcrypto_it8xxx2_sha_v2.c68 uint32_t w_input_index; member
77 chip_ctx.w_input_index = 0; in it8xxx2_sha256_init()
141 chip_ctx.w_input_index = 0; in it8xxx2_sha256_module_calculation()
163 chip_ctx.w_input[chip_ctx.w_input_index++] = in it8xxx2_hash_handler()
179 chip_ctx.w_input[chip_ctx.w_input_index++] = in it8xxx2_hash_handler()
186 if (chip_ctx.w_input_index >= SHA_SHA256_BLOCK_LEN) { in it8xxx2_hash_handler()
206 memset(&chip_ctx.w_input[chip_ctx.w_input_index], in it8xxx2_hash_handler()
207 0, SHA_SHA256_BLOCK_LEN - chip_ctx.w_input_index); in it8xxx2_hash_handler()
208 chip_ctx.w_input[chip_ctx.w_input_index] = 0x80; in it8xxx2_hash_handler()
216 if (chip_ctx.w_input_index >= 56) { in it8xxx2_hash_handler()
[all …]