Kea 2.7.5
|
Public Member Functions | |
TSIGContextImpl (const TSIGKey &key, TSIGError error=TSIGError::NOERROR()) | |
HMACPtr | createHMAC () |
void | digestDNSMessage (HMACPtr hmac, uint16_t qid, const void *data, size_t data_len) const |
void | digestPreviousMAC (HMACPtr hmac) |
void | digestTSIGVariables (HMACPtr hmac, uint16_t rrclass, uint32_t rrttl, uint64_t time_signed, uint16_t fudge, uint16_t error, uint16_t otherlen, const void *otherdata, bool time_variables_only) const |
TSIGError | postVerifyUpdate (TSIGError error, const void *digest, uint16_t digest_len) |
Public Attributes | |
size_t | digest_len_ |
TSIGError | error_ |
HMACPtr | hmac_ |
const TSIGKey | key_ |
int | last_sig_dist_ |
vector< uint8_t > | previous_digest_ |
uint64_t | previous_timesigned_ |
State | state_ |
|
inline |
Definition at line 52 of file tsig.cc.
References createHMAC(), isc::cryptolink::deleteHMAC(), digest_len_, isc::cryptolink::CryptoLink::getCryptoLink(), hmac_, key_, and isc::dns::TSIGError::NOERROR().
|
inline |
Definition at line 118 of file tsig.cc.
References createHMAC(), isc::cryptolink::deleteHMAC(), isc::cryptolink::CryptoLink::getCryptoLink(), hmac_, and key_.
Referenced by TSIGContextImpl(), and createHMAC().
void isc::dns::TSIGContext::TSIGContextImpl::digestDNSMessage | ( | HMACPtr | hmac, |
uint16_t | qid, | ||
const void * | data, | ||
size_t | data_len ) const |
Definition at line 240 of file tsig.cc.
References isc::util::readUint16().
void isc::dns::TSIGContext::TSIGContextImpl::digestPreviousMAC | ( | HMACPtr | hmac | ) |
Definition at line 165 of file tsig.cc.
References isc_throw_assert, and previous_digest_.
void isc::dns::TSIGContext::TSIGContextImpl::digestTSIGVariables | ( | HMACPtr | hmac, |
uint16_t | rrclass, | ||
uint32_t | rrttl, | ||
uint64_t | time_signed, | ||
uint16_t | fudge, | ||
uint16_t | error, | ||
uint16_t | otherlen, | ||
const void * | otherdata, | ||
bool | time_variables_only ) const |
|
inline |
Definition at line 97 of file tsig.cc.
References isc::cryptolink::digest(), error_, isc::dns::TSIGContext::INIT, isc::dns::TSIGError::NOERROR(), previous_digest_, isc::dns::TSIGContext::RECEIVED_REQUEST, isc::dns::TSIGContext::SENT_REQUEST, state_, and isc::dns::TSIGContext::VERIFIED_RESPONSE.
size_t isc::dns::TSIGContext::TSIGContextImpl::digest_len_ |
Definition at line 156 of file tsig.cc.
Referenced by TSIGContextImpl().
TSIGError isc::dns::TSIGContext::TSIGContextImpl::error_ |
Definition at line 154 of file tsig.cc.
Referenced by postVerifyUpdate().
HMACPtr isc::dns::TSIGContext::TSIGContextImpl::hmac_ |
Definition at line 157 of file tsig.cc.
Referenced by TSIGContextImpl(), and createHMAC().
const TSIGKey isc::dns::TSIGContext::TSIGContextImpl::key_ |
Definition at line 152 of file tsig.cc.
Referenced by TSIGContextImpl(), and createHMAC().
vector<uint8_t> isc::dns::TSIGContext::TSIGContextImpl::previous_digest_ |
Definition at line 153 of file tsig.cc.
Referenced by digestPreviousMAC(), and postVerifyUpdate().
uint64_t isc::dns::TSIGContext::TSIGContextImpl::previous_timesigned_ |
State isc::dns::TSIGContext::TSIGContextImpl::state_ |
Definition at line 151 of file tsig.cc.
Referenced by postVerifyUpdate().