Kea
1.9.9-git
|
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 55 of file tsig.cc.
References isc::cryptolink::deleteHMAC(), and isc::db::error.
|
inline |
Definition at line 123 of file tsig.cc.
References isc::cryptolink::deleteHMAC().
Referenced by isc::dns::TSIGContext::sign(), isc::dns::TSIGContext::update(), and isc::dns::TSIGContext::verify().
void isc::dns::TSIGContext::TSIGContextImpl::digestDNSMessage | ( | HMACPtr | hmac, |
uint16_t | qid, | ||
const void * | data, | ||
size_t | data_len | ||
) | const |
Definition at line 244 of file tsig.cc.
References isc::util::OutputBuffer::getData(), isc::util::OutputBuffer::getLength(), isc::util::readUint16(), isc::util::OutputBuffer::writeData(), and isc::util::OutputBuffer::writeUint16().
Referenced by isc::dns::TSIGContext::verify().
void isc::dns::TSIGContext::TSIGContextImpl::digestPreviousMAC | ( | HMACPtr | hmac | ) |
Definition at line 170 of file tsig.cc.
References isc::util::OutputBuffer::writeUint16().
Referenced by isc::dns::TSIGContext::sign(), isc::dns::TSIGContext::update(), and isc::dns::TSIGContext::verify().
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 |
Definition at line 192 of file tsig.cc.
References isc::util::OutputBuffer::getData(), isc::util::OutputBuffer::getLength(), isc::util::OutputBuffer::writeUint16(), and isc::util::OutputBuffer::writeUint32().
Referenced by isc::dns::TSIGContext::sign(), and isc::dns::TSIGContext::verify().
|
inline |
Definition at line 101 of file tsig.cc.
References isc::db::error.
Referenced by isc::dns::TSIGContext::verify().
size_t isc::dns::TSIGContext::TSIGContextImpl::digest_len_ |
Definition at line 161 of file tsig.cc.
Referenced by isc::dns::TSIGContext::getTSIGLength(), isc::dns::TSIGContext::sign(), and isc::dns::TSIGContext::verify().
TSIGError isc::dns::TSIGContext::TSIGContextImpl::error_ |
Definition at line 159 of file tsig.cc.
Referenced by isc::dns::TSIGContext::getError(), isc::dns::TSIGContext::getTSIGLength(), isc::dns::TSIGContext::sign(), and isc::dns::TSIGContext::verify().
HMACPtr isc::dns::TSIGContext::TSIGContextImpl::hmac_ |
Definition at line 162 of file tsig.cc.
Referenced by isc::dns::TSIGContext::update().
const TSIGKey isc::dns::TSIGContext::TSIGContextImpl::key_ |
Definition at line 157 of file tsig.cc.
Referenced by isc::dns::TSIGContext::getTSIGLength(), isc::dns::TSIGContext::sign(), and isc::dns::TSIGContext::verify().
int isc::dns::TSIGContext::TSIGContextImpl::last_sig_dist_ |
Definition at line 166 of file tsig.cc.
Referenced by isc::dns::TSIGContext::lastHadSignature(), and isc::dns::TSIGContext::verify().
vector<uint8_t> isc::dns::TSIGContext::TSIGContextImpl::previous_digest_ |
Definition at line 158 of file tsig.cc.
Referenced by isc::dns::TSIGContext::sign(), and isc::dns::TSIGContext::update().
uint64_t isc::dns::TSIGContext::TSIGContextImpl::previous_timesigned_ |
Definition at line 160 of file tsig.cc.
Referenced by isc::dns::TSIGContext::sign(), and isc::dns::TSIGContext::verify().
State isc::dns::TSIGContext::TSIGContextImpl::state_ |
Definition at line 156 of file tsig.cc.
Referenced by isc::dns::TSIGContext::getState(), isc::dns::TSIGContext::sign(), and isc::dns::TSIGContext::verify().