Searched refs:SHA512_BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance
193 src += SHA512_BLOCK_SIZE; in sha512_block_fn()200 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(uint64_t[2]); in sha512_base_do_finalize()202 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_finalize()206 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE - partial); in sha512_base_do_finalize()223 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_update()229 if (((partial + len) >= SHA512_BLOCK_SIZE)) { in sha512_base_do_update()233 int p = SHA512_BLOCK_SIZE - partial; in sha512_base_do_update()242 blocks = len / SHA512_BLOCK_SIZE; in sha512_base_do_update()243 len %= SHA512_BLOCK_SIZE; in sha512_base_do_update()247 data += blocks * SHA512_BLOCK_SIZE; in sha512_base_do_update()
17 #define SHA512_BLOCK_SIZE 128 macro144 uint8_t buf[SHA512_BLOCK_SIZE];