Lines Matching refs:hmac
52 void *hmac) in subflow_generate_hmac() argument
59 mptcp_crypto_hmac_sha(key1, key2, msg, 8, hmac); in subflow_generate_hmac()
72 u8 hmac[SHA256_DIGEST_SIZE]; in subflow_req_create_thmac() local
78 subflow_req->remote_nonce, hmac); in subflow_req_create_thmac()
80 subflow_req->thmac = get_unaligned_be64(hmac); in subflow_req_create_thmac()
338 u8 hmac[SHA256_DIGEST_SIZE]; in subflow_thmac_valid() local
343 hmac); in subflow_thmac_valid()
345 thmac = get_unaligned_be64(hmac); in subflow_thmac_valid()
436 u8 hmac[SHA256_DIGEST_SIZE]; in subflow_finish_connect() local
462 hmac); in subflow_finish_connect()
463 memcpy(subflow->hmac, hmac, MPTCPOPT_HMAC_LEN); in subflow_finish_connect()
545 u8 hmac[SHA256_DIGEST_SIZE]; in subflow_hmac_valid() local
555 subflow_req->local_nonce, hmac); in subflow_hmac_valid()
557 return !crypto_memneq(hmac, mp_opt->hmac, MPTCPOPT_HMAC_LEN); in subflow_hmac_valid()