Searched refs:SHA1_BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance
40 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_base_do_update()44 if (unlikely((partial + len) >= SHA1_BLOCK_SIZE)) { in sha1_base_do_update()48 int p = SHA1_BLOCK_SIZE - partial; in sha1_base_do_update()57 blocks = len / SHA1_BLOCK_SIZE; in sha1_base_do_update()58 len %= SHA1_BLOCK_SIZE; in sha1_base_do_update()62 data += blocks * SHA1_BLOCK_SIZE; in sha1_base_do_update()75 const int bit_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in sha1_base_do_finalize()78 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_base_do_finalize()82 memset(sctx->buffer + partial, 0x0, SHA1_BLOCK_SIZE - partial); in sha1_base_do_finalize()
12 #define SHA1_BLOCK_SIZE 64 macro81 u8 buffer[SHA1_BLOCK_SIZE];