Searched refs:SHA256_BLOCK_SIZE (Results 1 – 4 of 4) sorted by relevance
/external/chromium_org/crypto/ |
D | hmac_win.cc | 28 SHA256_BLOCK_SIZE = 64 // Block size (in bytes) of the input to SHA-256. enumerator 51 unsigned char key0[SHA256_BLOCK_SIZE]; in ComputeHMACSHA256() 52 if (key_len > SHA256_BLOCK_SIZE) { in ComputeHMACSHA256() 56 memset(key0 + SHA256_LENGTH, 0, SHA256_BLOCK_SIZE - SHA256_LENGTH); in ComputeHMACSHA256() 59 if (key_len < SHA256_BLOCK_SIZE) in ComputeHMACSHA256() 60 memset(key0 + key_len, 0, SHA256_BLOCK_SIZE - key_len); in ComputeHMACSHA256() 63 unsigned char padded_key[SHA256_BLOCK_SIZE]; in ComputeHMACSHA256() 67 for (int i = 0; i < SHA256_BLOCK_SIZE; ++i) in ComputeHMACSHA256() 72 SHA256_Update(&ctx, padded_key, SHA256_BLOCK_SIZE); in ComputeHMACSHA256() 77 for (int i = 0; i < SHA256_BLOCK_SIZE; ++i) in ComputeHMACSHA256() [all …]
|
/external/chromium/crypto/ |
D | hmac_win.cc | 28 SHA256_BLOCK_SIZE = 64 // Block size (in bytes) of the input to SHA-256. enumerator 38 unsigned char key0[SHA256_BLOCK_SIZE]; in ComputeHMACSHA256() 39 if (key_len > SHA256_BLOCK_SIZE) { in ComputeHMACSHA256() 43 memset(key0 + SHA256_LENGTH, 0, SHA256_BLOCK_SIZE - SHA256_LENGTH); in ComputeHMACSHA256() 46 memset(key0 + key_len, 0, SHA256_BLOCK_SIZE - key_len); in ComputeHMACSHA256() 49 unsigned char padded_key[SHA256_BLOCK_SIZE]; in ComputeHMACSHA256() 53 for (int i = 0; i < SHA256_BLOCK_SIZE; ++i) in ComputeHMACSHA256() 58 SHA256_Update(&ctx, padded_key, SHA256_BLOCK_SIZE); in ComputeHMACSHA256() 63 for (int i = 0; i < SHA256_BLOCK_SIZE; ++i) in ComputeHMACSHA256() 68 SHA256_Update(&ctx, padded_key, SHA256_BLOCK_SIZE); in ComputeHMACSHA256()
|
/external/wpa_supplicant_8/src/crypto/ |
D | sha256-internal.c | 154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 157 md->length += SHA256_BLOCK_SIZE * 8; in sha256_process() 158 in += SHA256_BLOCK_SIZE; in sha256_process() 159 inlen -= SHA256_BLOCK_SIZE; in sha256_process() 161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 169 md->length += 8 * SHA256_BLOCK_SIZE; in sha256_process() 203 while (md->curlen < SHA256_BLOCK_SIZE) { in sha256_done()
|
D | sha256_i.h | 12 #define SHA256_BLOCK_SIZE 64 macro 17 u8 buf[SHA256_BLOCK_SIZE];
|