Lines Matching refs:SHA512_BLOCK_LENGTH
100 #define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
599 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH]) in SHA512_Transform() argument
657 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH]) in SHA512_Transform() argument
740 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Update()
743 freespace = SHA512_BLOCK_LENGTH - usedspace; in SHA512_Update()
761 while (len >= SHA512_BLOCK_LENGTH) { in SHA512_Update()
764 ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); in SHA512_Update()
765 len -= SHA512_BLOCK_LENGTH; in SHA512_Update()
766 data += SHA512_BLOCK_LENGTH; in SHA512_Update()
782 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Pad()
791 if (usedspace < SHA512_BLOCK_LENGTH) { in SHA512_Pad()
792 memset(&context->buffer[usedspace], 0, SHA512_BLOCK_LENGTH - usedspace); in SHA512_Pad()
798 memset(context->buffer, 0, SHA512_BLOCK_LENGTH - 2); in SHA512_Pad()