Data Fields | |
| unsigned int | partial_count_bytes |
| uint8_t | partial_block [SHW_HASH_BLOCK_LEN] |
| uint32_t | state [SHW_HASH_STATE_WORDS] |
| uint64_t | bit_count |
State for a SHA-1/SHA-2 Hash
(Note to maintainers: state needs to be updated to uint64_t to handle SHA-384/SHA-512)... And bit_count to uint128_t (heh).
| uint64_t bit_count |
Number of bits sent through the update function
Referenced by sha256_init(), shw_hash_final(), and shw_hash_update().
| uint8_t partial_block[SHW_HASH_BLOCK_LEN] |
Data waiting to be processed as a block
Referenced by sha256_process_block(), and shw_hash_update().
| unsigned int partial_count_bytes |
Number of bytes of message sitting in partial_block
Referenced by sha256_init(), shw_hash_final(), and shw_hash_update().
| uint32_t state[SHW_HASH_STATE_WORDS] |
Current hash state variables
Referenced by sha256_init(), sha256_process_block(), and shw_hash_final().
| © Freescale Semiconductor, Inc., 2007.
All rights reserved. Freescale Confidential Proprietary NDA Required |
|