Lines Matching refs:SHA512_BLOCK_LENGTH
105 #define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
604 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH]) in SHA512_Transform() argument
662 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH]) in SHA512_Transform() argument
745 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Update()
748 freespace = SHA512_BLOCK_LENGTH - usedspace; in SHA512_Update()
766 while (len >= SHA512_BLOCK_LENGTH) { in SHA512_Update()
769 ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); in SHA512_Update()
770 len -= SHA512_BLOCK_LENGTH; in SHA512_Update()
771 data += SHA512_BLOCK_LENGTH; in SHA512_Update()
787 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Pad()
796 if (usedspace < SHA512_BLOCK_LENGTH) { in SHA512_Pad()
797 memset(&context->buffer[usedspace], 0, SHA512_BLOCK_LENGTH - usedspace); in SHA512_Pad()
803 memset(context->buffer, 0, SHA512_BLOCK_LENGTH - 2); in SHA512_Pad()
865 SHA384_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH]) in SHA384_Transform() argument