Home
last modified time | relevance | path

Searched refs:SHA512_BLOCK_SIZE (Results 1 – 12 of 12) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Dsha512-internal.c189 if (md->curlen == 0 && inlen >= SHA512_BLOCK_SIZE) { in sha512_process()
192 md->length += SHA512_BLOCK_SIZE * 8; in sha512_process()
193 in += SHA512_BLOCK_SIZE; in sha512_process()
194 inlen -= SHA512_BLOCK_SIZE; in sha512_process()
196 n = MIN(inlen, (SHA512_BLOCK_SIZE - md->curlen)); in sha512_process()
201 if (md->curlen == SHA512_BLOCK_SIZE) { in sha512_process()
204 md->length += 8 * SHA512_BLOCK_SIZE; in sha512_process()
Dsha512_i.h12 #define SHA512_BLOCK_SIZE 128 macro
17 u8 buf[SHA512_BLOCK_SIZE];
Dsha384_i.h14 #define SHA384_BLOCK_SIZE SHA512_BLOCK_SIZE
/external/vboot_reference/firmware/lib/cryptolib/
Dpadding.c214 SHA512_BLOCK_SIZE,
217 SHA512_BLOCK_SIZE,
220 SHA512_BLOCK_SIZE,
223 SHA512_BLOCK_SIZE,
Dsha512.c272 tmp_len = SHA512_BLOCK_SIZE - ctx->len; in SHA512_update()
277 if (ctx->len + len < SHA512_BLOCK_SIZE) { in SHA512_update()
283 block_nb = new_len / SHA512_BLOCK_SIZE; in SHA512_update()
290 rem_len = new_len % SHA512_BLOCK_SIZE; in SHA512_update()
309 block_nb = 1 + ((SHA512_BLOCK_SIZE - 17) in SHA512_final()
310 < (ctx->len % SHA512_BLOCK_SIZE)); in SHA512_final()
/external/mmc-utils/3rdparty/hmac_sha/
Dsha2.h47 #define SHA512_BLOCK_SIZE (1024 / 8) macro
48 #define SHA384_BLOCK_SIZE SHA512_BLOCK_SIZE
72 unsigned char block[2 * SHA512_BLOCK_SIZE];
Dhmac_sha2.c312 if (key_size == SHA512_BLOCK_SIZE) { in hmac_sha512_init()
314 num = SHA512_BLOCK_SIZE; in hmac_sha512_init()
316 if (key_size > SHA512_BLOCK_SIZE){ in hmac_sha512_init()
324 fill = SHA512_BLOCK_SIZE - num; in hmac_sha512_init()
336 sha512_update(&ctx->ctx_inside, ctx->block_ipad, SHA512_BLOCK_SIZE); in hmac_sha512_init()
340 SHA512_BLOCK_SIZE); in hmac_sha512_init()
Dhmac_sha2.h91 unsigned char block_ipad[SHA512_BLOCK_SIZE];
92 unsigned char block_opad[SHA512_BLOCK_SIZE];
Dsha2.c562 tmp_len = SHA512_BLOCK_SIZE - ctx->len; in sha512_update()
567 if (ctx->len + len < SHA512_BLOCK_SIZE) { in sha512_update()
573 block_nb = new_len / SHA512_BLOCK_SIZE; in sha512_update()
580 rem_len = new_len % SHA512_BLOCK_SIZE; in sha512_update()
599 block_nb = 1 + ((SHA512_BLOCK_SIZE - 17) in sha512_final()
600 < (ctx->len % SHA512_BLOCK_SIZE)); in sha512_final()
/external/vboot_reference/firmware/lib/cryptolib/include/
Dsha.h24 #define SHA512_BLOCK_SIZE 128 macro
51 uint8_t block[2 * SHA512_BLOCK_SIZE];
/external/tpm2/
DCpriHashData.c28 {TPM_ALG_SHA512, SHA512_DIGEST_SIZE, SHA512_BLOCK_SIZE,
DImplementation.h502 #define SHA512_BLOCK_SIZE 128 macro
877 MAX(ALG_SHA512 * SHA512_BLOCK_SIZE, \