Lines Matching refs:SHA512_BLOCK_LENGTH
107 #define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
670 SHA512Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH]) in SHA512Transform() argument
728 SHA512Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH]) in SHA512Transform() argument
812 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512Update()
815 freespace = SHA512_BLOCK_LENGTH - usedspace; in SHA512Update()
833 while (len >= SHA512_BLOCK_LENGTH) { in SHA512Update()
836 ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); in SHA512Update()
837 len -= SHA512_BLOCK_LENGTH; in SHA512Update()
838 data += SHA512_BLOCK_LENGTH; in SHA512Update()
855 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512Pad()
864 if (usedspace < SHA512_BLOCK_LENGTH) { in SHA512Pad()
865 memset(&context->buffer[usedspace], 0, SHA512_BLOCK_LENGTH - usedspace); in SHA512Pad()
871 memset(context->buffer, 0, SHA512_BLOCK_LENGTH - 2); in SHA512Pad()
934 SHA384Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH]) in SHA384Transform() argument