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