120 const uint8_t* salt_data,
size_t salt_length);
245 const uint8_t* salt_data,
size_t salt_length)
263 const uint8_t* salt_data,
264 size_t salt_length)
const;
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
The default NSEC3Hash creator.
virtual NSEC3Hash * create(const rdata::generic::NSEC3PARAM ¶m) const
Factory method of NSECHash from NSEC3PARAM RDATA.
Light-weight Accessor to Name data.
Factory class of NSEC3Hash.
virtual ~NSEC3HashCreator()
The destructor.
virtual NSEC3Hash * create(const rdata::generic::NSEC3PARAM &nsec3param) const =0
Factory method of NSECHash from NSEC3PARAM RDATA.
NSEC3HashCreator()
The default constructor.
virtual NSEC3Hash * create(const rdata::generic::NSEC3 &nsec3) const =0
Factory method of NSECHash from NSEC3 RDATA.
virtual NSEC3Hash * create(uint8_t algorithm, uint16_t iterations, const uint8_t *salt_data, size_t salt_length) const =0
Factory method of NSECHash from args.
A calculator of NSEC3 hashes.
virtual bool match(const rdata::generic::NSEC3 &nsec3) const =0
Match given NSEC3 parameters with that of the hash.
virtual ~NSEC3Hash()
The destructor.
virtual std::string calculate(const LabelSequence &ls) const =0
Calculate the NSEC3 hash (LabelSequence variant).
virtual std::string calculate(const Name &name) const =0
Calculate the NSEC3 hash (Name variant).
static NSEC3Hash * create(const rdata::generic::NSEC3PARAM ¶m)
Factory method of NSECHash from NSEC3PARAM RDATA.
virtual bool match(const rdata::generic::NSEC3PARAM &nsec3param) const =0
Match given NSEC3PARAM parameters with that of the hash.
NSEC3Hash()
The default constructor.
The Name class encapsulates DNS names.
An exception that is thrown for when an NSEC3Hash object is constructed with an unknown hash algorith...
UnknownNSEC3HashAlgorithm(const char *file, size_t line, const char *what)
void setNSEC3HashCreator(const NSEC3HashCreator *new_creator)
The registrar of NSEC3HashCreator.
Defines the logger used by the top-level component of kea-lfc.