Home
last modified time | relevance | path

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

/u-boot/include/u-boot/
A Dsha512.h8 #define SHA512_BLOCK_SIZE 128 macro
16 uint8_t buf[SHA512_BLOCK_SIZE];
/u-boot/lib/
A Dsha512.c199 src += SHA512_BLOCK_SIZE; in sha512_block_fn()
207 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_update()
213 if (unlikely((partial + len) >= SHA512_BLOCK_SIZE)) { in sha512_base_do_update()
217 int p = SHA512_BLOCK_SIZE - partial; in sha512_base_do_update()
226 blocks = len / SHA512_BLOCK_SIZE; in sha512_base_do_update()
227 len %= SHA512_BLOCK_SIZE; in sha512_base_do_update()
231 data += blocks * SHA512_BLOCK_SIZE; in sha512_base_do_update()
241 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(uint64_t[2]); in sha512_base_do_finalize()
243 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_finalize()
247 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE - partial); in sha512_base_do_finalize()

Completed in 4 milliseconds