Lines Matching refs:hmac_code
116 uint8_t hmac_code[HMAC_LENGTH]; in dhcp_auth_validate() local
206 if (dlen < sizeof(secretid) + sizeof(hmac_code)) { in dhcp_auth_validate()
216 if (dlen < sizeof(secretid) + sizeof(hmac_code)) { in dhcp_auth_validate()
220 realm_len = dlen - (sizeof(secretid) + sizeof(hmac_code)); in dhcp_auth_validate()
353 memset(hmac_code, 0, sizeof(hmac_code)); in dhcp_auth_validate()
357 hmac_code, sizeof(hmac_code)); in dhcp_auth_validate()
366 if (!consttime_memequal(d, &hmac_code, dlen)) { in dhcp_auth_validate()
527 uint8_t hmac_code[HMAC_LENGTH]; in dhcp_auth_encode() local
603 dlen += sizeof(t->secretid) + sizeof(hmac_code); in dhcp_auth_encode()
723 hmac_code, sizeof(hmac_code)); in dhcp_auth_encode()
724 memcpy(data, hmac_code, sizeof(hmac_code)); in dhcp_auth_encode()
737 return (int)(dlen - sizeof(hmac_code)); /* should be zero */ in dhcp_auth_encode()