Home
last modified time | relevance | path

Searched refs:SHA256_SHORT_BLOCK_LENGTH (Results 1 – 3 of 3) sorted by relevance

/openbsd/src/sys/crypto/
Dsha2.c95 #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8) macro
486 if (usedspace <= SHA256_SHORT_BLOCK_LENGTH) { in SHA256Final()
489 SHA256_SHORT_BLOCK_LENGTH - usedspace); in SHA256Final()
500 SHA256_SHORT_BLOCK_LENGTH); in SHA256Final()
504 memset(context->buffer, 0, SHA256_SHORT_BLOCK_LENGTH); in SHA256Final()
510 *(u_int64_t *)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] = context->bitcount[0]; in SHA256Final()
/openbsd/src/sys/lib/libsa/
Dsha2.c98 #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8) macro
560 if (usedspace <= SHA256_SHORT_BLOCK_LENGTH) { in SHA256Pad()
563 SHA256_SHORT_BLOCK_LENGTH - usedspace); in SHA256Pad()
573 memset(context->buffer, 0, SHA256_SHORT_BLOCK_LENGTH); in SHA256Pad()
577 memset(context->buffer, 0, SHA256_SHORT_BLOCK_LENGTH); in SHA256Pad()
583 BE_64_TO_8(&context->buffer[SHA256_SHORT_BLOCK_LENGTH], in SHA256Pad()
/openbsd/src/lib/libc/hash/
Dsha2.c97 #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8) macro
567 if (usedspace <= SHA256_SHORT_BLOCK_LENGTH) { in SHA256Pad()
570 SHA256_SHORT_BLOCK_LENGTH - usedspace); in SHA256Pad()
580 memset(context->buffer, 0, SHA256_SHORT_BLOCK_LENGTH); in SHA256Pad()
584 memset(context->buffer, 0, SHA256_SHORT_BLOCK_LENGTH); in SHA256Pad()
590 BE_64_TO_8(&context->buffer[SHA256_SHORT_BLOCK_LENGTH], in SHA256Pad()