Lines Matching defs:mac2
1676 * just to verify mac2 and then unlock/DH/lock?
1685 * with an invalid msg.mac2. If the responder receives a
1686 * message with a valid msg.mac1 yet with an invalid msg.mac2,
1703 uint8_t mac2[WG_MAC_LEN];
1704 wg_algo_mac(mac2, sizeof(mac2), wgp->wgp_last_sent_cookie,
1707 if (!consttime_memequal(mac2, wgmi->wgmi_mac2, sizeof(mac2))) {
1708 WG_DLOG("mac2 is invalid\n");
2081 /* msg.mac2 := 0^16 */
2084 /* msg.mac2 := MAC(Lm, msg_b) */
2246 * with an invalid msg.mac2. If the responder receives a
2247 * message with a valid msg.mac1 yet with an invalid msg.mac2,
2264 uint8_t mac2[WG_MAC_LEN];
2265 wg_algo_mac(mac2, sizeof(mac2), wgp->wgp_last_sent_cookie,
2268 if (!consttime_memequal(mac2, wgmr->wgmr_mac2, sizeof(mac2))) {
2269 WG_DLOG("mac2 is invalid\n");
2494 /* Need to store to calculate mac2 */