/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_internal.c | 43 u8 k_pad[64]; in crypto_hash_init() local 76 if (key_len > sizeof(k_pad)) { in crypto_hash_init() 86 os_memcpy(k_pad, key, key_len); in crypto_hash_init() 87 if (key_len < sizeof(k_pad)) in crypto_hash_init() 88 os_memset(k_pad + key_len, 0, sizeof(k_pad) - key_len); in crypto_hash_init() 89 for (i = 0; i < sizeof(k_pad); i++) in crypto_hash_init() 90 k_pad[i] ^= 0x36; in crypto_hash_init() 92 MD5Update(&ctx->u.md5, k_pad, sizeof(k_pad)); in crypto_hash_init() 95 if (key_len > sizeof(k_pad)) { in crypto_hash_init() 105 os_memcpy(k_pad, key, key_len); in crypto_hash_init() [all …]
|
D | sha1.c | 29 unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */ in hmac_sha1_vector() local 61 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha1_vector() 62 os_memcpy(k_pad, key, key_len); in hmac_sha1_vector() 65 k_pad[i] ^= 0x36; in hmac_sha1_vector() 68 _addr[0] = k_pad; in hmac_sha1_vector() 77 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha1_vector() 78 os_memcpy(k_pad, key, key_len); in hmac_sha1_vector() 81 k_pad[i] ^= 0x5c; in hmac_sha1_vector() 84 _addr[0] = k_pad; in hmac_sha1_vector() 89 forced_memzero(k_pad, sizeof(k_pad)); in hmac_sha1_vector()
|
D | md5.c | 29 u8 k_pad[64]; /* padding - key XORd with ipad/opad */ in hmac_md5_vector() local 61 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_md5_vector() 62 os_memcpy(k_pad, key, key_len); in hmac_md5_vector() 66 k_pad[i] ^= 0x36; in hmac_md5_vector() 69 _addr[0] = k_pad; in hmac_md5_vector() 78 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_md5_vector() 79 os_memcpy(k_pad, key, key_len); in hmac_md5_vector() 82 k_pad[i] ^= 0x5c; in hmac_md5_vector() 85 _addr[0] = k_pad; in hmac_md5_vector() 90 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_md5_vector()
|
D | sha512.c | 29 unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */ in hmac_sha512_vector() local 60 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha512_vector() 61 os_memcpy(k_pad, key, key_len); in hmac_sha512_vector() 64 k_pad[i] ^= 0x36; in hmac_sha512_vector() 67 _addr[0] = k_pad; in hmac_sha512_vector() 76 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha512_vector() 77 os_memcpy(k_pad, key, key_len); in hmac_sha512_vector() 80 k_pad[i] ^= 0x5c; in hmac_sha512_vector() 83 _addr[0] = k_pad; in hmac_sha512_vector()
|
D | sha384.c | 29 unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */ in hmac_sha384_vector() local 60 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha384_vector() 61 os_memcpy(k_pad, key, key_len); in hmac_sha384_vector() 64 k_pad[i] ^= 0x36; in hmac_sha384_vector() 67 _addr[0] = k_pad; in hmac_sha384_vector() 76 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha384_vector() 77 os_memcpy(k_pad, key, key_len); in hmac_sha384_vector() 80 k_pad[i] ^= 0x5c; in hmac_sha384_vector() 83 _addr[0] = k_pad; in hmac_sha384_vector()
|
D | sha256.c | 29 unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */ in hmac_sha256_vector() local 60 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha256_vector() 61 os_memcpy(k_pad, key, key_len); in hmac_sha256_vector() 64 k_pad[i] ^= 0x36; in hmac_sha256_vector() 67 _addr[0] = k_pad; in hmac_sha256_vector() 76 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha256_vector() 77 os_memcpy(k_pad, key, key_len); in hmac_sha256_vector() 80 k_pad[i] ^= 0x5c; in hmac_sha256_vector() 83 _addr[0] = k_pad; in hmac_sha256_vector()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_internal.c | 43 u8 k_pad[64]; in crypto_hash_init() local 76 if (key_len > sizeof(k_pad)) { in crypto_hash_init() 86 os_memcpy(k_pad, key, key_len); in crypto_hash_init() 87 if (key_len < sizeof(k_pad)) in crypto_hash_init() 88 os_memset(k_pad + key_len, 0, sizeof(k_pad) - key_len); in crypto_hash_init() 89 for (i = 0; i < sizeof(k_pad); i++) in crypto_hash_init() 90 k_pad[i] ^= 0x36; in crypto_hash_init() 92 MD5Update(&ctx->u.md5, k_pad, sizeof(k_pad)); in crypto_hash_init() 95 if (key_len > sizeof(k_pad)) { in crypto_hash_init() 105 os_memcpy(k_pad, key, key_len); in crypto_hash_init() [all …]
|
D | sha1.c | 29 unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */ in hmac_sha1_vector() local 61 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha1_vector() 62 os_memcpy(k_pad, key, key_len); in hmac_sha1_vector() 65 k_pad[i] ^= 0x36; in hmac_sha1_vector() 68 _addr[0] = k_pad; in hmac_sha1_vector() 77 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha1_vector() 78 os_memcpy(k_pad, key, key_len); in hmac_sha1_vector() 81 k_pad[i] ^= 0x5c; in hmac_sha1_vector() 84 _addr[0] = k_pad; in hmac_sha1_vector() 89 forced_memzero(k_pad, sizeof(k_pad)); in hmac_sha1_vector()
|
D | md5.c | 29 u8 k_pad[64]; /* padding - key XORd with ipad/opad */ in hmac_md5_vector() local 61 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_md5_vector() 62 os_memcpy(k_pad, key, key_len); in hmac_md5_vector() 66 k_pad[i] ^= 0x36; in hmac_md5_vector() 69 _addr[0] = k_pad; in hmac_md5_vector() 78 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_md5_vector() 79 os_memcpy(k_pad, key, key_len); in hmac_md5_vector() 82 k_pad[i] ^= 0x5c; in hmac_md5_vector() 85 _addr[0] = k_pad; in hmac_md5_vector() 90 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_md5_vector()
|
D | sha384.c | 29 unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */ in hmac_sha384_vector() local 60 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha384_vector() 61 os_memcpy(k_pad, key, key_len); in hmac_sha384_vector() 64 k_pad[i] ^= 0x36; in hmac_sha384_vector() 67 _addr[0] = k_pad; in hmac_sha384_vector() 76 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha384_vector() 77 os_memcpy(k_pad, key, key_len); in hmac_sha384_vector() 80 k_pad[i] ^= 0x5c; in hmac_sha384_vector() 83 _addr[0] = k_pad; in hmac_sha384_vector()
|
D | sha256.c | 29 unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */ in hmac_sha256_vector() local 60 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha256_vector() 61 os_memcpy(k_pad, key, key_len); in hmac_sha256_vector() 64 k_pad[i] ^= 0x36; in hmac_sha256_vector() 67 _addr[0] = k_pad; in hmac_sha256_vector() 76 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha256_vector() 77 os_memcpy(k_pad, key, key_len); in hmac_sha256_vector() 80 k_pad[i] ^= 0x5c; in hmac_sha256_vector() 83 _addr[0] = k_pad; in hmac_sha256_vector()
|
D | sha512.c | 29 unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */ in hmac_sha512_vector() local 60 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha512_vector() 61 os_memcpy(k_pad, key, key_len); in hmac_sha512_vector() 64 k_pad[i] ^= 0x36; in hmac_sha512_vector() 67 _addr[0] = k_pad; in hmac_sha512_vector() 76 os_memset(k_pad, 0, sizeof(k_pad)); in hmac_sha512_vector() 77 os_memcpy(k_pad, key, key_len); in hmac_sha512_vector() 80 k_pad[i] ^= 0x5c; in hmac_sha512_vector() 83 _addr[0] = k_pad; in hmac_sha512_vector()
|