Searched refs:SHA256_BLOCK_SIZE (Results 1 - 7 of 7) 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.c154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
157 md->length += SHA256_BLOCK_SIZE * 8;
158 in += SHA256_BLOCK_SIZE;
159 inlen -= SHA256_BLOCK_SIZE;
161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
166 if (md->curlen == SHA256_BLOCK_SIZE) {
169 md->length += 8 * SHA256_BLOCK_SIZE;
203 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.c154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
157 md->length += SHA256_BLOCK_SIZE * 8;
158 in += SHA256_BLOCK_SIZE;
159 inlen -= SHA256_BLOCK_SIZE;
161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
166 if (md->curlen == SHA256_BLOCK_SIZE) {
169 md->length += 8 * SHA256_BLOCK_SIZE;
203 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.c154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
157 md->length += SHA256_BLOCK_SIZE * 8;
158 in += SHA256_BLOCK_SIZE;
159 inlen -= SHA256_BLOCK_SIZE;
161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
166 if (md->curlen == SHA256_BLOCK_SIZE) {
169 md->length += 8 * SHA256_BLOCK_SIZE;
203 while (md->curlen < SHA256_BLOCK_SIZE) {
/external/chromium_org/crypto/
H A Dhmac_win.cc28 SHA256_BLOCK_SIZE = 64 // Block size (in bytes) of the input to SHA-256. enumerator in enum:crypto::__anon7943::__anon7944
51 unsigned char key0[SHA256_BLOCK_SIZE];
52 if (key_len > SHA256_BLOCK_SIZE) {
56 memset(key0 + SHA256_LENGTH, 0, SHA256_BLOCK_SIZE - SHA256_LENGTH);
59 if (key_len < SHA256_BLOCK_SIZE)
60 memset(key0 + key_len, 0, SHA256_BLOCK_SIZE - key_len);
63 unsigned char padded_key[SHA256_BLOCK_SIZE];
67 for (int i = 0; i < SHA256_BLOCK_SIZE; ++i)
72 SHA256_Update(&ctx, padded_key, SHA256_BLOCK_SIZE);
77 for (int i = 0; i < SHA256_BLOCK_SIZE;
[all...]

Completed in 6525 milliseconds