Home
last modified time | relevance | path

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

/base/startup/hvb/libhvb/src/crypto/
Dhvb_hash_sha256.c185 uint32_t pad_word_len; in hash_sha256_pad_update() local
199 pad_word_len = BLK_WORD_SIZE_SHA256; in hash_sha256_pad_update()
201 pad_word_len = PAD_BLK_WORD_SIZE_SHA256; in hash_sha256_pad_update()
204 fill_zero_len = word2byte(pad_word_len) - (uint32_t)left_len - PAD_INFO_BYTE_LEN_SHA256; in hash_sha256_pad_update()
207 sha256_pad[pad_word_len - 1] = htobe32((uint32_t)total_bit_len); in hash_sha256_pad_update()
209 sha256_pad[pad_word_len - 2] = htobe32((uint32_t)total_bit_len); in hash_sha256_pad_update()
211 sha256_data_blk_update(iv, sha256_pad, word2byte(pad_word_len)); in hash_sha256_pad_update()