Home
last modified time | relevance | path

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

/external/chromium/crypto/
Dhmac_win.cc28 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/
Dsha256-internal.c154 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()
Dsha256_i.h12 #define SHA256_BLOCK_SIZE 64 macro
17 u8 buf[SHA256_BLOCK_SIZE];