12#ifndef GSS_TSIG_CONTEXT_H
13#define GSS_TSIG_CONTEXT_H
17#include <boost/shared_ptr.hpp>
70 sign(
const uint16_t qid,
const void*
const data,
71 const size_t data_len)
override;
79 const size_t data_len)
override;
142 std::vector<uint8_t> previous_digest_;
150 uint64_t previous_timesigned_;
174 void update(
const void*
const data,
size_t len);
State
Internal state of context.
virtual bool lastHadSignature() const override
Check whether the last verified message was signed.
virtual dns::TSIGError getError() const override
Return the TSIG error as a result of the latest verification.
virtual ~GssTsigContext()
Destructor.
virtual dns::ConstTSIGRecordPtr sign(const uint16_t qid, const void *const data, const size_t data_len) override
Sign a DNS message.
virtual void setState(State state)
Set the current state of the context.
virtual size_t getTSIGLength() const override
Return the expected length of TSIG RR after sign().
void update(const void *const data, size_t len)
Update internal MAC state by more data.
virtual State getState() const override
Return the current state of the context.
virtual void setError(dns::TSIGError error)
Set the TSIG error.
virtual dns::TSIGError verify(const dns::TSIGRecord *const record, const void *const data, const size_t data_len) override
a DNS message.
GssTsigContext(GssTsigKey &key)
Constructor.
GSS-TSIG extension of the D2 TSIG key class.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
Defines a State within the State Model.
boost::shared_ptr< const TSIGRecord > ConstTSIGRecordPtr
A pointer-like type pointing to an immutable TSIGRecord object.
boost::shared_ptr< GssTsigContext > GssTsigContextPtr
Type of pointer to a GSS-TSIG context.
Defines the logger used by the top-level component of kea-lfc.