Searched refs:COOKIE_MAC_SIZE (Results 1 - 2 of 2) sorted by relevance
/openbsd-current/sys/net/ |
H A D | wg_cookie.h | 33 #define COOKIE_MAC_SIZE 16 macro 39 #define COOKIE_ENCRYPTED_SIZE (COOKIE_COOKIE_SIZE + COOKIE_MAC_SIZE) 59 uint8_t mac1[COOKIE_MAC_SIZE]; 60 uint8_t mac2[COOKIE_MAC_SIZE]; 95 uint8_t cp_mac1_last[COOKIE_MAC_SIZE];
|
H A D | wg_cookie.c | 111 cm->mac1, COOKIE_MAC_SIZE, nonce, cc->cc_cookie_key); 132 cp->cp_mac1_last, COOKIE_MAC_SIZE, nonce, cp->cp_cookie_key) == 0) { 154 memcpy(cp->cp_mac1_last, cm->mac1, COOKIE_MAC_SIZE); 161 bzero(cm->mac2, COOKIE_MAC_SIZE); 179 if (timingsafe_bcmp(our_cm.mac1, cm->mac1, COOKIE_MAC_SIZE) != 0) 187 if (timingsafe_bcmp(our_cm.mac2, cm->mac2, COOKIE_MAC_SIZE) != 0) 224 blake2s_init_key(&state, COOKIE_MAC_SIZE, key, COOKIE_KEY_SIZE); 234 blake2s_init_key(&state, COOKIE_MAC_SIZE, key, COOKIE_COOKIE_SIZE); 236 blake2s_update(&state, cm->mac1, COOKIE_MAC_SIZE);
|
Completed in 58 milliseconds