Lines Matching refs:hmac
128 memcpy(mp_opt->hmac, ptr, MPTCPOPT_HMAC_LEN);
129 pr_debug("MP_JOIN hmac");
446 memcpy(opts->hmac, subflow->hmac, MPTCPOPT_HMAC_LEN);
548 u8 hmac[SHA256_DIGEST_SIZE];
556 mptcp_crypto_hmac_sha(key1, key2, msg, 7, hmac);
558 return get_unaligned_be64(&hmac[SHA256_DIGEST_SIZE - sizeof(u64)]);
565 u8 hmac[SHA256_DIGEST_SIZE];
573 mptcp_crypto_hmac_sha(key1, key2, msg, 19, hmac);
575 return get_unaligned_be64(&hmac[SHA256_DIGEST_SIZE - sizeof(u64)]);
862 u64 hmac = 0;
868 hmac = add_addr_generate_hmac(msk->remote_key,
873 hmac = add_addr6_generate_hmac(msk->remote_key,
879 msk, (unsigned long long)hmac,
882 return hmac == mp_opt->ahmac;
1087 memcpy(ptr, opts->hmac, MPTCPOPT_HMAC_LEN);