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