Lines Matching refs:w_input_index
55 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()
158 0, SHA_SHA256_BLOCK_LEN - chip_ctx.w_input_index); in it8xxx2_hash_handler()