Lines Matching refs:macs
143 struct cookie_macs *macs, uint8_t nonce[COOKIE_NONCE_SIZE],
153 macs->mac1, COOKIE_MAC_SIZE, nonce, cc->cc_cookie_key);
209 cookie_maker_mac(struct cookie_maker *cm, struct cookie_macs *macs, void *buf,
213 macs_mac1(macs, buf, len, cm->cm_mac1_key);
214 memcpy(cm->cm_mac1_last, macs->mac1, COOKIE_MAC_SIZE);
220 macs_mac2(macs, buf, len, cm->cm_cookie);
222 bzero(macs->mac2, COOKIE_MAC_SIZE);
229 cookie_checker_validate_macs(struct cookie_checker *cc, struct cookie_macs *macs,
241 if (timingsafe_bcmp(our_macs.mac1, macs->mac1, COOKIE_MAC_SIZE) != 0)
249 if (timingsafe_bcmp(our_macs.mac2, macs->mac2, COOKIE_MAC_SIZE) != 0)
282 macs_mac1(struct cookie_macs *macs, const void *buf, size_t len,
288 blake2s_final(&state, macs->mac1);
292 macs_mac2(struct cookie_macs *macs, const void *buf, size_t len,
298 blake2s_update(&state, macs->mac1, COOKIE_MAC_SIZE);
299 blake2s_final(&state, macs->mac2);