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

/u-boot/include/u-boot/
H A Dsha512.h8 #define SHA512_BLOCK_SIZE 128 macro
16 uint8_t buf[SHA512_BLOCK_SIZE];
/u-boot/lib/
H A Dsha512.c195 src += SHA512_BLOCK_SIZE;
203 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE;
209 if (unlikely((partial + len) >= SHA512_BLOCK_SIZE)) {
213 int p = SHA512_BLOCK_SIZE - partial;
222 blocks = len / SHA512_BLOCK_SIZE;
223 len %= SHA512_BLOCK_SIZE;
227 data += blocks * SHA512_BLOCK_SIZE;
237 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(uint64_t[2]);
239 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE;
243 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE
[all...]

Completed in 36 milliseconds