Home
last modified time | relevance | path

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

/base/startup/hvb/libhvb/src/crypto/
Dhvb_hash_sha256.c186 uint32_t sha256_pad[PAD_BLK_WORD_SIZE_SHA256]; in hash_sha256_pad_update() local
191 hvb_memcpy(sha256_pad, left_msg, (uint32_t)left_len); in hash_sha256_pad_update()
194 pad_ptr = (uint8_t *)sha256_pad; 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()