Kea  1.9.9-git
isc::dns::TSIGContext::TSIGContextImpl Struct Reference

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_
 

Detailed Description

Definition at line 54 of file tsig.cc.

Constructor & Destructor Documentation

isc::dns::TSIGContext::TSIGContextImpl::TSIGContextImpl ( const TSIGKey key,
TSIGError  error = TSIGError::NOERROR() 
)
inline

Definition at line 55 of file tsig.cc.

References isc::cryptolink::deleteHMAC(), and isc::db::error.

+ Here is the call graph for this function:

Member Function Documentation

HMACPtr isc::dns::TSIGContext::TSIGContextImpl::createHMAC ( )
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().

+ Here is the call graph for this function:

void isc::dns::TSIGContext::TSIGContextImpl::digestDNSMessage ( HMACPtr  hmac,
uint16_t  qid,
const void *  data,
size_t  data_len 
) const
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().

+ Here is the call graph for this function:

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
TSIGError isc::dns::TSIGContext::TSIGContextImpl::postVerifyUpdate ( TSIGError  error,
const void *  digest,
uint16_t  digest_len 
)
inline

Definition at line 101 of file tsig.cc.

References isc::db::error.

Referenced by isc::dns::TSIGContext::verify().

Member Data Documentation

size_t isc::dns::TSIGContext::TSIGContextImpl::digest_len_
TSIGError isc::dns::TSIGContext::TSIGContextImpl::error_
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_
int isc::dns::TSIGContext::TSIGContextImpl::last_sig_dist_
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_

The documentation for this struct was generated from the following file: