Lines Matching defs:key
18 * @key: Key for HMAC operations
19 * @key_len: Length of the key in bytes
26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
29 u8 k_pad[64]; /* padding - key XORd with ipad/opad */
43 /* if key is longer than 64 bytes reset it to key = MD5(key) */
45 if (md5_vector(1, &key, &key_len, tk))
47 key = tk;
55 * where K is an n byte key
60 /* start out by storing key in ipad */
62 os_memcpy(k_pad, key, key_len);
64 /* XOR key with ipad values */
79 os_memcpy(k_pad, key, key_len);
80 /* XOR key with opad values */
98 * @key: Key for HMAC operations
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,
108 return hmac_md5_vector(key, key_len, 1, &data, &data_len, mac);