Searched refs:SHA256_BLOCK_SIZE (Results 1 – 16 of 16) sorted by relevance
/external/libchrome/crypto/ |
D | hmac_win.cc | 29 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/ |
D | sha256-internal.c | 157 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()
|
D | sha256_i.h | 12 #define SHA256_BLOCK_SIZE 64 macro 17 u8 buf[SHA256_BLOCK_SIZE];
|
/external/vboot_reference/firmware/lib/cryptolib/ |
D | padding.c | 213 SHA256_BLOCK_SIZE, 216 SHA256_BLOCK_SIZE, 219 SHA256_BLOCK_SIZE, 222 SHA256_BLOCK_SIZE,
|
D | sha256.c | 250 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/ |
D | sha2.h | 46 #define SHA256_BLOCK_SIZE ( 512 / 8) macro 49 #define SHA224_BLOCK_SIZE SHA256_BLOCK_SIZE 65 unsigned char block[2 * SHA256_BLOCK_SIZE];
|
D | hmac_sha2.c | 140 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()
|
D | hmac_sha2.h | 67 unsigned char block_ipad[SHA256_BLOCK_SIZE]; 68 unsigned char block_opad[SHA256_BLOCK_SIZE];
|
D | sha2.c | 365 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/ |
D | sha.h | 21 #define SHA256_BLOCK_SIZE 64 macro 43 uint8_t block[2 * SHA256_BLOCK_SIZE];
|
/external/fio/crc/ |
D | sha256.h | 5 #define SHA256_BLOCK_SIZE 64 macro
|
/external/tpm2/ |
D | CpriHashData.c | 16 {TPM_ALG_SHA256, SHA256_DIGEST_SIZE, SHA256_BLOCK_SIZE,
|
D | Implementation.h | 473 #define SHA256_BLOCK_SIZE 64 macro 861 MAX(ALG_SHA256 * SHA256_BLOCK_SIZE, \
|
D | part4.txt | 24677 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/ |
D | raw_structures.txt | 16216 SHA256_BLOCK_SIZE
|
D | raw_structures_fixed.txt | 16191 SHA256_BLOCK_SIZE
|