112 const void* secret,
size_t secret_len,
size_t digestbits = 0);
136 explicit TSIGKey(
const std::string& str);
203 std::string
toText()
const;
272 code(param_code),
key(param_key)
308 unsigned int size()
const;
The Name class encapsulates DNS names.
isc::cryptolink::HashAlgorithm getAlgorithm() const
Return the hash algorithm name in the form of cryptolink::HashAlgorithm.
The operation is successful.
const void * getSecret() const
Return the value of the TSIG secret.
Result
Result codes of various public methods of TSIGKeyRing.
TSIGKey(const Name &key_name, const Name &algorithm_name, const void *secret, size_t secret_len, size_t digestbits=0)
Constructor from key parameters.
A helper structure to represent the search result of TSIGKeyRing::find().
static const Name & HMACSHA224_NAME()
HMAC-SHA256 (RFC4635)
static const Name & HMACSHA1_NAME()
HMAC-SHA1 (RFC4635)
~TSIGKey()
The destructor.
HashAlgorithm
Hash algorithm identifiers.
static const Name & HMACSHA256_NAME()
HMAC-SHA256 (RFC4635)
const Name & getAlgorithmName() const
Return the algorithm name.
static const Name & HMACSHA512_NAME()
HMAC-SHA256 (RFC4635)
Result add(const TSIGKey &key)
Add a TSIGKey to the TSIGKeyRing.
static const Name & HMACMD5_NAME()
HMAC-MD5 (RFC2845)
size_t getDigestbits() const
Return the minimum truncated length.
const Name & getKeyName() const
Return the key name.
FindResult find(const Name &key_name) const
Find a TSIGKey for the given name in the TSIGKeyRing.
TSIGKey & operator=(const TSIGKey &source)
Assignment operator.
Defines the logger used by the top-level component of kea-dhcp-ddns.
FindResult(Result param_code, const TSIGKey *param_key)
TSIGKeyRing()
The default constructor.
size_t getSecretLength() const
Return the length of the TSIG secret in bytes.
A simple repository of a set of TSIGKey objects.
static const Name & HMACMD5_SHORT_NAME()
static const Name & GSSTSIG_NAME()
GSS-TSIG (RFC3645)
~TSIGKeyRing()
The destructor.
The specified key is not found in TSIGKeyRing.
unsigned int size() const
Return the number of keys stored in the TSIGKeyRing.
std::string toText() const
Converts the TSIGKey to a string value.
static const Name & HMACSHA384_NAME()
HMAC-SHA256 (RFC4635)
A key is already stored in TSIGKeyRing.