Home
last modified time | relevance | path

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

/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/vboot_reference/firmware/lib/cryptolib/include/
Dsha.h21 #define SHA256_BLOCK_SIZE 64 macro
43 uint8_t block[2 * SHA256_BLOCK_SIZE];
/external/ms-tpm-20-ref/TPMCmd/tpm/include/
DSelfTest.h97 # define DEFAULT_TEST_HASH_BLOCK_SIZE SHA256_BLOCK_SIZE
DTpmAlgorithmDefines.h94 #define SHA256_BLOCK_SIZE 64 macro
365 MAX(ALG_SHA256 * SHA256_BLOCK_SIZE, \
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/reference/include/
DImplementation.h421 #define SHA256_BLOCK_SIZE 64 macro
1105 MAX(ALG_SHA256 * SHA256_BLOCK_SIZE, \