Home
last modified time | relevance | path

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

/external/libchrome/crypto/
Dhmac_win.cc29 SHA256_BLOCK_SIZE = 64 // Block size (in bytes) of the input to SHA-256. enumerator
52 unsigned char key0[SHA256_BLOCK_SIZE]; in ComputeHMACSHA256()
53 if (key_len > SHA256_BLOCK_SIZE) { in ComputeHMACSHA256()
57 memset(key0 + SHA256_LENGTH, 0, SHA256_BLOCK_SIZE - SHA256_LENGTH); in ComputeHMACSHA256()
60 if (key_len < SHA256_BLOCK_SIZE) in ComputeHMACSHA256()
61 memset(key0 + key_len, 0, SHA256_BLOCK_SIZE - key_len); in ComputeHMACSHA256()
64 unsigned char padded_key[SHA256_BLOCK_SIZE]; in ComputeHMACSHA256()
68 for (int i = 0; i < SHA256_BLOCK_SIZE; ++i) in ComputeHMACSHA256()
73 SHA256_Update(&ctx, padded_key, SHA256_BLOCK_SIZE); in ComputeHMACSHA256()
78 for (int i = 0; i < SHA256_BLOCK_SIZE; ++i) in ComputeHMACSHA256()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dsha256-internal.c157 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
160 md->length += SHA256_BLOCK_SIZE * 8; in sha256_process()
161 in += SHA256_BLOCK_SIZE; in sha256_process()
162 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
164 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
169 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process()
172 md->length += 8 * SHA256_BLOCK_SIZE; in sha256_process()
206 while (md->curlen < SHA256_BLOCK_SIZE) { in sha256_done()
Dsha256_i.h12 #define SHA256_BLOCK_SIZE 64 macro
17 u8 buf[SHA256_BLOCK_SIZE];
/external/vboot_reference/firmware/lib/cryptolib/
Dpadding.c213 SHA256_BLOCK_SIZE,
216 SHA256_BLOCK_SIZE,
219 SHA256_BLOCK_SIZE,
222 SHA256_BLOCK_SIZE,
Dsha256.c250 tmp_len = SHA256_BLOCK_SIZE - ctx->len; in SHA256_update()
255 if (ctx->len + len < SHA256_BLOCK_SIZE) { in SHA256_update()
261 block_nb = new_len / SHA256_BLOCK_SIZE; in SHA256_update()
268 rem_len = new_len % SHA256_BLOCK_SIZE; in SHA256_update()
285 block_nb = (1 + ((SHA256_BLOCK_SIZE - 9) in SHA256_final()
286 < (ctx->len % SHA256_BLOCK_SIZE))); in SHA256_final()
/external/mmc-utils/3rdparty/hmac_sha/
Dsha2.h46 #define SHA256_BLOCK_SIZE ( 512 / 8) macro
49 #define SHA224_BLOCK_SIZE SHA256_BLOCK_SIZE
65 unsigned char block[2 * SHA256_BLOCK_SIZE];
Dhmac_sha2.c140 if (key_size == SHA256_BLOCK_SIZE) { in hmac_sha256_init()
142 num = SHA256_BLOCK_SIZE; in hmac_sha256_init()
144 if (key_size > SHA256_BLOCK_SIZE){ in hmac_sha256_init()
152 fill = SHA256_BLOCK_SIZE - num; in hmac_sha256_init()
164 sha256_update(&ctx->ctx_inside, ctx->block_ipad, SHA256_BLOCK_SIZE); in hmac_sha256_init()
168 SHA256_BLOCK_SIZE); in hmac_sha256_init()
Dhmac_sha2.h67 unsigned char block_ipad[SHA256_BLOCK_SIZE];
68 unsigned char block_opad[SHA256_BLOCK_SIZE];
Dsha2.c365 tmp_len = SHA256_BLOCK_SIZE - ctx->len; in sha256_update()
370 if (ctx->len + len < SHA256_BLOCK_SIZE) { in sha256_update()
376 block_nb = new_len / SHA256_BLOCK_SIZE; in sha256_update()
383 rem_len = new_len % SHA256_BLOCK_SIZE; in sha256_update()
402 block_nb = (1 + ((SHA256_BLOCK_SIZE - 9) in sha256_final()
403 < (ctx->len % SHA256_BLOCK_SIZE))); in sha256_final()
/external/vboot_reference/firmware/lib/cryptolib/include/
Dsha.h21 #define SHA256_BLOCK_SIZE 64 macro
43 uint8_t block[2 * SHA256_BLOCK_SIZE];
/external/fio/crc/
Dsha256.h5 #define SHA256_BLOCK_SIZE 64 macro
/external/tpm2/
DCpriHashData.c16 {TPM_ALG_SHA256, SHA256_DIGEST_SIZE, SHA256_BLOCK_SIZE,
DImplementation.h473 #define SHA256_BLOCK_SIZE 64 macro
861 MAX(ALG_SHA256 * SHA256_BLOCK_SIZE, \
Dpart4.txt24677 408 #define SHA256_BLOCK_SIZE 64
25102 775 MAX(ALG_SHA256 * SHA256_BLOCK_SIZE, \
27541 7 {TPM_ALG_SHA256, SHA256_DIGEST_SIZE, SHA256_BLOCK_SIZE,
/external/tpm2/generator/
Draw_structures.txt16216 SHA256_BLOCK_SIZE
Draw_structures_fixed.txt16191 SHA256_BLOCK_SIZE