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

/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dsha256_i.h12 #define SHA256_BLOCK_SIZE 64 macro
17 u8 buf[SHA256_BLOCK_SIZE];
H A Dsha256-internal.c157 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
160 md->length += SHA256_BLOCK_SIZE * 8;
161 in += SHA256_BLOCK_SIZE;
162 inlen -= SHA256_BLOCK_SIZE;
164 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
169 if (md->curlen == SHA256_BLOCK_SIZE) {
172 md->length += 8 * SHA256_BLOCK_SIZE;
206 while (md->curlen < SHA256_BLOCK_SIZE) {
/external/wpa_supplicant_8/src/crypto/
H A Dsha256_i.h12 #define SHA256_BLOCK_SIZE 64 macro
17 u8 buf[SHA256_BLOCK_SIZE];
H A Dsha256-internal.c157 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
160 md->length += SHA256_BLOCK_SIZE * 8;
161 in += SHA256_BLOCK_SIZE;
162 inlen -= SHA256_BLOCK_SIZE;
164 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
169 if (md->curlen == SHA256_BLOCK_SIZE) {
172 md->length += 8 * SHA256_BLOCK_SIZE;
206 while (md->curlen < SHA256_BLOCK_SIZE) {
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dsha256_i.h12 #define SHA256_BLOCK_SIZE 64 macro
17 u8 buf[SHA256_BLOCK_SIZE];
H A Dsha256-internal.c157 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
160 md->length += SHA256_BLOCK_SIZE * 8;
161 in += SHA256_BLOCK_SIZE;
162 inlen -= SHA256_BLOCK_SIZE;
164 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
169 if (md->curlen == SHA256_BLOCK_SIZE) {
172 md->length += 8 * SHA256_BLOCK_SIZE;
206 while (md->curlen < SHA256_BLOCK_SIZE) {
/external/fio/crc/
H A Dsha256.h5 #define SHA256_BLOCK_SIZE 64 macro
/external/tpm2/
H A DCpriHashData.c16 {TPM_ALG_SHA256, SHA256_DIGEST_SIZE, SHA256_BLOCK_SIZE,
H A DImplementation.h486 #define SHA256_BLOCK_SIZE 64 macro
874 MAX(ALG_SHA256 * SHA256_BLOCK_SIZE, \
/external/mmc-utils/3rdparty/hmac_sha/
H A 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];
H A Dhmac_sha2.h67 unsigned char block_ipad[SHA256_BLOCK_SIZE];
68 unsigned char block_opad[SHA256_BLOCK_SIZE];
H A Dhmac_sha2.c140 if (key_size == SHA256_BLOCK_SIZE) {
142 num = SHA256_BLOCK_SIZE;
144 if (key_size > SHA256_BLOCK_SIZE){
148 } else { /* key_size > SHA256_BLOCK_SIZE */
152 fill = SHA256_BLOCK_SIZE - num;
164 sha256_update(&ctx->ctx_inside, ctx->block_ipad, SHA256_BLOCK_SIZE);
168 SHA256_BLOCK_SIZE);
H A Dsha2.c365 tmp_len = SHA256_BLOCK_SIZE - ctx->len;
370 if (ctx->len + len < SHA256_BLOCK_SIZE) {
376 block_nb = new_len / SHA256_BLOCK_SIZE;
383 rem_len = new_len % SHA256_BLOCK_SIZE;
402 block_nb = (1 + ((SHA256_BLOCK_SIZE - 9)
403 < (ctx->len % SHA256_BLOCK_SIZE)));
/external/vboot_reference/firmware/lib/cryptolib/include/
H A Dsha.h21 #define SHA256_BLOCK_SIZE 64 macro
43 uint8_t block[2 * SHA256_BLOCK_SIZE];
/external/vboot_reference/firmware/lib/cryptolib/
H A Dsha256.c250 tmp_len = SHA256_BLOCK_SIZE - ctx->len;
255 if (ctx->len + len < SHA256_BLOCK_SIZE) {
261 block_nb = new_len / SHA256_BLOCK_SIZE;
268 rem_len = new_len % SHA256_BLOCK_SIZE;
285 block_nb = (1 + ((SHA256_BLOCK_SIZE - 9)
286 < (ctx->len % SHA256_BLOCK_SIZE)));
H A Dpadding.c213 SHA256_BLOCK_SIZE,
216 SHA256_BLOCK_SIZE,
219 SHA256_BLOCK_SIZE,
222 SHA256_BLOCK_SIZE,

Completed in 2827 milliseconds