Lines Matching defs:hmac
168 unsigned char hmac[SHA1_MAC_LEN];
187 /* HMAC-SHA1-128 */
196 hmac_sha1_vector(k_aut, EAP_SIM_K_AUT_LEN, 2, addr, len, hmac);
198 hmac, EAP_SIM_MAC_LEN);
201 return (os_memcmp_const(hmac, mac, EAP_SIM_MAC_LEN) == 0) ? 0 : 1;
208 unsigned char hmac[SHA1_MAC_LEN];
217 /* HMAC-SHA1-128 */
224 hmac_sha1_vector(k_aut, EAP_SIM_K_AUT_LEN, 2, addr, len, hmac);
225 os_memcpy(mac, hmac, EAP_SIM_MAC_LEN);
244 * T1 = HMAC-SHA-256 (K, S | 0x01)
245 * T2 = HMAC-SHA-256 (K, T1 | S | 0x02)
246 * T3 = HMAC-SHA-256 (K, T2 | S | 0x03)
247 * T4 = HMAC-SHA-256 (K, T3 | S | 0x04)
363 unsigned char hmac[SHA256_MAC_LEN];
382 /* HMAC-SHA-256-128 */
391 hmac_sha256_vector(k_aut, EAP_AKA_PRIME_K_AUT_LEN, 2, addr, len, hmac);
393 hmac, EAP_SIM_MAC_LEN);
396 return (os_memcmp_const(hmac, mac, EAP_SIM_MAC_LEN) == 0) ? 0 : 1;
403 unsigned char hmac[SHA256_MAC_LEN];
412 /* HMAC-SHA-256-128 */
419 hmac_sha256_vector(k_aut, EAP_AKA_PRIME_K_AUT_LEN, 2, addr, len, hmac);
420 os_memcpy(mac, hmac, EAP_SIM_MAC_LEN);
447 * CK' || IK' = HMAC-SHA-256(Key, S)