Home
last modified time | relevance | path

Searched refs:SHA256_BLOCK_LENGTH (Results 1 – 6 of 6) sorted by relevance

/external/ipsec-tools/src/racoon/missing/crypto/sha2/
Dsha2.h49 #define SHA256_BLOCK_LENGTH 64 macro
93 uint8_t buffer[SHA256_BLOCK_LENGTH];
106 u_int8_t buffer[SHA256_BLOCK_LENGTH];
Dsha2.c149 #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 …]
/external/openssh/openbsd-compat/
Dsha2.c103 #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8)
323 SHA256_Transform(u_int32_t state[8], const u_int8_t data[SHA256_BLOCK_LENGTH]) in SHA256_Transform() argument
381 SHA256_Transform(u_int32_t state[8], const u_int8_t data[SHA256_BLOCK_LENGTH]) in SHA256_Transform() argument
464 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update()
467 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256_Update()
485 while (len >= SHA256_BLOCK_LENGTH) { in SHA256_Update()
488 context->bitcount += SHA256_BLOCK_LENGTH << 3; in SHA256_Update()
489 len -= SHA256_BLOCK_LENGTH; in SHA256_Update()
490 data += SHA256_BLOCK_LENGTH; in SHA256_Update()
506 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Pad()
[all …]
Dsha2.h56 #define SHA256_BLOCK_LENGTH 64 macro
71 u_int8_t buffer[SHA256_BLOCK_LENGTH];
82 void SHA256_Transform(u_int32_t state[8], const u_int8_t [SHA256_BLOCK_LENGTH]);
/external/openssh/
Dmd-sha256.c79 ssh_sha256.block_size = SHA256_BLOCK_LENGTH; in evp_ssh_sha256()
Ddigest-libc.c94 SHA256_BLOCK_LENGTH,