Searched refs:key_len (Results 1 - 25 of 307) sorted by relevance

1234567891011>>

/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_internal.c27 size_t key_len; member in struct:crypto_hash
32 size_t key_len)
58 if (key_len > sizeof(k_pad)) {
60 MD5Update(&ctx->u.md5, key, key_len);
63 key_len = 16;
65 os_memcpy(ctx->key, key, key_len);
66 ctx->key_len = key_len;
68 os_memcpy(k_pad, key, key_len);
69 if (key_len < sizeo
31 crypto_hash_init(enum crypto_hash_alg alg, const u8 *key, size_t key_len) argument
[all...]
H A Dmd5.c19 * @key_len: Length of the key in bytes
26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, argument
44 if (key_len > 64) {
45 if (md5_vector(1, &key, &key_len, tk))
48 key_len = 16;
62 os_memcpy(k_pad, key, key_len);
79 os_memcpy(k_pad, key, key_len);
99 * @key_len: Length of the key in bytes
105 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, argument
108 return hmac_md5_vector(key, key_len,
[all...]
H A Dmd5.h14 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
H A Dsha1.c19 * @key_len: Length of the key in bytes
26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, argument
44 if (key_len > 64) {
45 if (sha1_vector(1, &key, &key_len, tk))
48 key_len = 20;
62 os_memcpy(k_pad, key, key_len);
78 os_memcpy(k_pad, key, key_len);
97 * @key_len: Length of the key in bytes
103 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, argument
106 return hmac_sha1_vector(key, key_len,
[all...]
H A Dsha256.c19 * @key_len: Length of the key in bytes
26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, argument
43 if (key_len > 64) {
44 if (sha256_vector(1, &key, &key_len, tk) < 0)
47 key_len = 32;
61 os_memcpy(k_pad, key, key_len);
77 os_memcpy(k_pad, key, key_len);
94 * @key_len: Length of the key in bytes
100 int hmac_sha256(const u8 *key, size_t key_len, const u8 *data, argument
103 return hmac_sha256_vector(key, key_len,
[all...]
H A Dsha384.h14 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_sha384(const u8 *key, size_t key_len, const u8 *data,
H A Dsha1.h14 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
18 int sha1_prf(const u8 *key, size_t key_len, const char *label,
20 int sha1_t_prf(const u8 *key, size_t key_len, const char *label,
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_internal.c27 size_t key_len; member in struct:crypto_hash
32 size_t key_len)
58 if (key_len > sizeof(k_pad)) {
60 MD5Update(&ctx->u.md5, key, key_len);
63 key_len = 16;
65 os_memcpy(ctx->key, key, key_len);
66 ctx->key_len = key_len;
68 os_memcpy(k_pad, key, key_len);
69 if (key_len < sizeo
31 crypto_hash_init(enum crypto_hash_alg alg, const u8 *key, size_t key_len) argument
[all...]
H A Dmd5.c19 * @key_len: Length of the key in bytes
26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, argument
44 if (key_len > 64) {
45 if (md5_vector(1, &key, &key_len, tk))
48 key_len = 16;
62 os_memcpy(k_pad, key, key_len);
79 os_memcpy(k_pad, key, key_len);
99 * @key_len: Length of the key in bytes
105 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, argument
108 return hmac_md5_vector(key, key_len,
[all...]
H A Dmd5.h14 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
H A Dsha1.c19 * @key_len: Length of the key in bytes
26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, argument
44 if (key_len > 64) {
45 if (sha1_vector(1, &key, &key_len, tk))
48 key_len = 20;
62 os_memcpy(k_pad, key, key_len);
78 os_memcpy(k_pad, key, key_len);
97 * @key_len: Length of the key in bytes
103 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, argument
106 return hmac_sha1_vector(key, key_len,
[all...]
H A Dsha256.c19 * @key_len: Length of the key in bytes
26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, argument
43 if (key_len > 64) {
44 if (sha256_vector(1, &key, &key_len, tk) < 0)
47 key_len = 32;
61 os_memcpy(k_pad, key, key_len);
77 os_memcpy(k_pad, key, key_len);
94 * @key_len: Length of the key in bytes
100 int hmac_sha256(const u8 *key, size_t key_len, const u8 *data, argument
103 return hmac_sha256_vector(key, key_len,
[all...]
H A Dsha384.h14 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_sha384(const u8 *key, size_t key_len, const u8 *data,
H A Dsha1.h14 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
18 int sha1_prf(const u8 *key, size_t key_len, const char *label,
20 int sha1_t_prf(const u8 *key, size_t key_len, const char *label,
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_internal.c27 size_t key_len; member in struct:crypto_hash
32 size_t key_len)
58 if (key_len > sizeof(k_pad)) {
60 MD5Update(&ctx->u.md5, key, key_len);
63 key_len = 16;
65 os_memcpy(ctx->key, key, key_len);
66 ctx->key_len = key_len;
68 os_memcpy(k_pad, key, key_len);
69 if (key_len < sizeo
31 crypto_hash_init(enum crypto_hash_alg alg, const u8 *key, size_t key_len) argument
[all...]
H A Dmd5.c19 * @key_len: Length of the key in bytes
26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, argument
44 if (key_len > 64) {
45 if (md5_vector(1, &key, &key_len, tk))
48 key_len = 16;
62 os_memcpy(k_pad, key, key_len);
79 os_memcpy(k_pad, key, key_len);
99 * @key_len: Length of the key in bytes
105 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, argument
108 return hmac_md5_vector(key, key_len,
[all...]
H A Dmd5.h14 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
H A Dsha1.c19 * @key_len: Length of the key in bytes
26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, argument
44 if (key_len > 64) {
45 if (sha1_vector(1, &key, &key_len, tk))
48 key_len = 20;
62 os_memcpy(k_pad, key, key_len);
78 os_memcpy(k_pad, key, key_len);
97 * @key_len: Length of the key in bytes
103 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, argument
106 return hmac_sha1_vector(key, key_len,
[all...]
H A Dsha256.c19 * @key_len: Length of the key in bytes
26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, argument
43 if (key_len > 64) {
44 if (sha256_vector(1, &key, &key_len, tk) < 0)
47 key_len = 32;
61 os_memcpy(k_pad, key, key_len);
77 os_memcpy(k_pad, key, key_len);
94 * @key_len: Length of the key in bytes
100 int hmac_sha256(const u8 *key, size_t key_len, const u8 *data, argument
103 return hmac_sha256_vector(key, key_len,
[all...]
H A Dsha384.h14 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_sha384(const u8 *key, size_t key_len, const u8 *data,
H A Dsha1.h14 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
18 int sha1_prf(const u8 *key, size_t key_len, const char *label,
20 int sha1_t_prf(const u8 *key, size_t key_len, const char *label,
/external/srtp/crypto/include/
H A Dnull_auth.h55 null_auth_alloc(auth_t **a, int key_len, int out_len);
61 null_auth_init(null_auth_ctx_t *state, const uint8_t *key, int key_len);
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_peap_common.h12 int peap_prfplus(int version, const u8 *key, size_t key_len,
/external/wpa_supplicant_8/src/eap_common/
H A Deap_peap_common.h12 int peap_prfplus(int version, const u8 *key, size_t key_len,
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Deap_peap_common.h12 int peap_prfplus(int version, const u8 *key, size_t key_len,

Completed in 260 milliseconds

1234567891011>>