Lines Matching refs:mac2
161 bzero(cm->mac2, COOKIE_MAC_SIZE);
186 /* If the mac2 is invalid, we want to send a cookie response */
187 if (timingsafe_bcmp(our_cm.mac2, cm->mac2, COOKIE_MAC_SIZE) != 0)
190 /* If the mac2 is valid, we may want rate limit the peer.
237 blake2s_final(&state, cm->mac2);
606 /* Check we have a null mac2 */
607 for (i = 0; i < sizeof(cm.mac2); i++)
608 if (cm.mac2[i] != 0)
620 /* Check mac2 is zeroed */
622 for (i = 0; i < sizeof(cm.mac2); i++)
623 res |= cm.mac2[i];
633 /* Check we get a EAGAIN if no mac2 and under load */
660 /* Check we added a mac2 */
662 for (i = 0; i < sizeof(cm.mac2); i++)
663 res |= cm.mac2[i];
667 /* Check we get OK if mac2 and under load */
679 /* Check we get OK if mac2 and under load */