Kea  2.3.5-git
isc::dns::DefaultNSEC3HashCreator Class Reference

The default NSEC3Hash creator. More...

#include <nsec3hash.h>

+ Inheritance diagram for isc::dns::DefaultNSEC3HashCreator:

Public Member Functions

virtual NSEC3Hashcreate (const rdata::generic::NSEC3PARAM &param) const
 Factory method of NSECHash from NSEC3PARAM RDATA. More...
 
virtual NSEC3Hashcreate (const rdata::generic::NSEC3 &nsec3) const
 Factory method of NSECHash from NSEC3 RDATA. More...
 
virtual NSEC3Hashcreate (uint8_t algorithm, uint16_t iterations, const uint8_t *salt_data, size_t salt_length) const
 Factory method of NSECHash from args. More...
 
- Public Member Functions inherited from isc::dns::NSEC3HashCreator
virtual ~NSEC3HashCreator ()
 The destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from isc::dns::NSEC3HashCreator
 NSEC3HashCreator ()
 The default constructor. More...
 

Detailed Description

The default NSEC3Hash creator.

This derived class implements the NSEC3HashCreator interfaces for the standard NSEC3 hash calculator as defined in RFC5155. The library will use this creator by default, so normal applications don't have to be aware of this class at all. This class is publicly visible for the convenience of special applications that want to customize the creator behavior for a particular type of parameters while preserving the default behavior for others.

Definition at line 258 of file nsec3hash.h.

Member Function Documentation

◆ create() [1/3]

NSEC3Hash * isc::dns::DefaultNSEC3HashCreator::create ( const rdata::generic::NSEC3PARAM nsec3param) const
virtual

◆ create() [2/3]

NSEC3Hash * isc::dns::DefaultNSEC3HashCreator::create ( const rdata::generic::NSEC3 nsec3) const
virtual

Factory method of NSECHash from NSEC3 RDATA.

See NSEC3Hash::create(const rdata::generic::NSEC3& param)

Implements isc::dns::NSEC3HashCreator.

Definition at line 246 of file nsec3hash.cc.

References isc::dns::rdata::generic::NSEC3::getHashalg(), isc::dns::rdata::generic::NSEC3::getIterations(), and isc::dns::rdata::generic::NSEC3::getSalt().

+ Here is the call graph for this function:

◆ create() [3/3]

NSEC3Hash * isc::dns::DefaultNSEC3HashCreator::create ( uint8_t  algorithm,
uint16_t  iterations,
const uint8_t *  salt_data,
size_t  salt_length 
) const
virtual

Factory method of NSECHash from args.

See NSEC3Hash::create(uint8_t algorithm, uint16_t iterations, const uint8_t* salt_data, size_t salt_length)

Parameters
algorithmthe NSEC3 algorithm to use; currently only 1 (SHA-1) is supported
iterationsthe number of iterations
salt_datathe salt data as a byte array
salt_lengththe length of the salt data

Implements isc::dns::NSEC3HashCreator.

Definition at line 254 of file nsec3hash.cc.


The documentation for this class was generated from the following files: