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])
657 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH])
740 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH;
743 freespace = SHA512_BLOCK_LENGTH - usedspace;
761 while (len >= SHA512_BLOCK_LENGTH) {
764 ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3);
765 len -= SHA512_BLOCK_LENGTH;
766 data += SHA512_BLOCK_LENGTH;
782 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH;
791 if (usedspace < SHA512_BLOCK_LENGTH) {
792 memset(&context->buffer[usedspace], 0, SHA512_BLOCK_LENGTH - usedspace);
798 memset(context->buffer, 0, SHA512_BLOCK_LENGTH - 2);