Lines Matching refs:hmac
46 void *hmac)
53 mptcp_crypto_hmac_sha(key1, key2, msg, 8, hmac);
62 /* validate received token and create truncated hmac and nonce for SYN-ACK */
67 u8 hmac[SHA256_DIGEST_SIZE];
88 subflow_req->remote_nonce, hmac);
90 subflow_req->thmac = get_unaligned_be64(hmac);
254 /* validate received truncated hmac and create hmac for third ACK */
257 u8 hmac[SHA256_DIGEST_SIZE];
262 hmac);
264 thmac = get_unaligned_be64(hmac);
324 u8 hmac[SHA256_DIGEST_SIZE];
345 hmac);
346 memcpy(subflow->hmac, hmac, MPTCPOPT_HMAC_LEN);
440 /* validate hmac received in third ACK */
445 u8 hmac[SHA256_DIGEST_SIZE];
455 subflow_req->local_nonce, hmac);
457 return !crypto_memneq(hmac, mp_opt->hmac, MPTCPOPT_HMAC_LEN);