Lines Matching refs:SHA512_BLOCK_LENGTH
50 #define SHA512_BLOCK_LENGTH 128 macro
56 uint8_t buffer[SHA512_BLOCK_LENGTH];
107 #define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
267 MEMSET_BZERO(context->buffer, SHA512_BLOCK_LENGTH); in SHA512_Init()
360 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Update()
363 freespace = SHA512_BLOCK_LENGTH - usedspace; in SHA512_Update()
381 while (len >= SHA512_BLOCK_LENGTH) { in SHA512_Update()
384 ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); in SHA512_Update()
385 len -= SHA512_BLOCK_LENGTH; in SHA512_Update()
386 data += SHA512_BLOCK_LENGTH; in SHA512_Update()
401 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Last()
415 if (usedspace < SHA512_BLOCK_LENGTH) { in SHA512_Last()
416 MEMSET_BZERO(&context->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace); in SHA512_Last()
422 MEMSET_BZERO(context->buffer, SHA512_BLOCK_LENGTH - 2); in SHA512_Last()