Searched refs:SHA256_BLOCK_LENGTH (Results 1 – 4 of 4) sorted by relevance
49 #define SHA256_BLOCK_LENGTH 64 macro93 uint8_t buffer[SHA256_BLOCK_LENGTH];106 u_int8_t buffer[SHA256_BLOCK_LENGTH];
149 #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8)339 bzero(context->buffer, SHA256_BLOCK_LENGTH); in SHA256_Init()529 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update()532 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256_Update()550 while (len >= SHA256_BLOCK_LENGTH) { in SHA256_Update()553 context->bitcount += SHA256_BLOCK_LENGTH << 3; in SHA256_Update()554 len -= SHA256_BLOCK_LENGTH; in SHA256_Update()555 data += SHA256_BLOCK_LENGTH; in SHA256_Update()575 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Final()588 if (usedspace < SHA256_BLOCK_LENGTH) { in SHA256_Final()[all …]
74 #define SHA256_BLOCK_LENGTH 64 /* bytes */ macro
410 unsigned int todo = SHA256_BLOCK_LENGTH - inBuf; in SHA256_Update()416 if (inBuf + todo == SHA256_BLOCK_LENGTH) in SHA256_Update()421 while (inputLen >= SHA256_BLOCK_LENGTH) { in SHA256_Update()422 memcpy(B, input, SHA256_BLOCK_LENGTH); in SHA256_Update()423 input += SHA256_BLOCK_LENGTH; in SHA256_Update()424 inputLen -= SHA256_BLOCK_LENGTH; in SHA256_Update()