Home
last modified time | relevance | path

Searched refs:SHA512_BLOCK_LENGTH (Results 1 – 4 of 4) sorted by relevance

/external/ipsec-tools/src/racoon/missing/crypto/sha2/
Dsha2.h55 #define SHA512_BLOCK_LENGTH 128 macro
98 uint8_t buffer[SHA512_BLOCK_LENGTH];
111 u_int8_t buffer[SHA512_BLOCK_LENGTH];
Dsha2.c151 #define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
667 bzero(context->buffer, SHA512_BLOCK_LENGTH); in SHA512_Init()
851 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Update()
854 freespace = SHA512_BLOCK_LENGTH - usedspace; in SHA512_Update()
872 while (len >= SHA512_BLOCK_LENGTH) { in SHA512_Update()
875 ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); in SHA512_Update()
876 len -= SHA512_BLOCK_LENGTH; in SHA512_Update()
877 data += SHA512_BLOCK_LENGTH; in SHA512_Update()
891 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Last()
905 if (usedspace < SHA512_BLOCK_LENGTH) { in SHA512_Last()
[all …]
/external/chromium/crypto/third_party/nss/
Dblapit.h76 #define SHA512_BLOCK_LENGTH 128 /* bytes */ macro
77 #define HASH_BLOCK_LENGTH_MAX SHA512_BLOCK_LENGTH
Dsha512.cc1063 unsigned int todo = SHA512_BLOCK_LENGTH - inBuf;
1069 if (inBuf + todo == SHA512_BLOCK_LENGTH)
1074 while (inputLen >= SHA512_BLOCK_LENGTH) {
1075 memcpy(B, input, SHA512_BLOCK_LENGTH);
1076 input += SHA512_BLOCK_LENGTH;
1077 inputLen -= SHA512_BLOCK_LENGTH;