Lines Matching refs:hmac
127 memcpy(mp_opt->hmac, ptr, MPTCPOPT_HMAC_LEN); in mptcp_parse_option()
445 memcpy(opts->hmac, subflow->hmac, MPTCPOPT_HMAC_LEN); in mptcp_established_options_mp()
547 u8 hmac[SHA256_DIGEST_SIZE]; in add_addr_generate_hmac() local
555 mptcp_crypto_hmac_sha(key1, key2, msg, 7, hmac); in add_addr_generate_hmac()
557 return get_unaligned_be64(&hmac[SHA256_DIGEST_SIZE - sizeof(u64)]); in add_addr_generate_hmac()
564 u8 hmac[SHA256_DIGEST_SIZE]; in add_addr6_generate_hmac() local
572 mptcp_crypto_hmac_sha(key1, key2, msg, 19, hmac); in add_addr6_generate_hmac()
574 return get_unaligned_be64(&hmac[SHA256_DIGEST_SIZE - sizeof(u64)]); in add_addr6_generate_hmac()
861 u64 hmac = 0; in add_addr_hmac_valid() local
867 hmac = add_addr_generate_hmac(msk->remote_key, in add_addr_hmac_valid()
872 hmac = add_addr6_generate_hmac(msk->remote_key, in add_addr_hmac_valid()
878 msk, (unsigned long long)hmac, in add_addr_hmac_valid()
881 return hmac == mp_opt->ahmac; in add_addr_hmac_valid()
1086 memcpy(ptr, opts->hmac, MPTCPOPT_HMAC_LEN); in mptcp_write_options()