14 #include <boost/noncopyable.hpp>
15 #include <boost/shared_ptr.hpp>
20 namespace cryptolink {
47 typedef boost::shared_ptr<RNG>
RNGPtr;
77 BadKey(
const char* file,
size_t line,
const char*
what) :
243 #endif // ISC_CRYPTO_H
This exception is raised when a general error that was not specifically caught is thrown by the under...
HMAC * createHMAC(const void *secret, size_t secret_len, const HashAlgorithm hash_algorithm)
Factory function for HMAC objects.
HashAlgorithm
Hash algorithm identifiers.
InitializationError(const char *file, size_t line, const char *what)
LibraryError(const char *file, size_t line, const char *what)
static void initialize()
Initialize the library manually.
This exception is thrown when a cryptographic action is requested for an algorithm that is not suppor...
General exception class that is the base for all crypto-related exceptions.
Singleton entry point and factory class.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
This exception is thrown when the underlying library could not handle the key data.
Hash * createHash(const HashAlgorithm hash_algorithm)
Factory function for Hash objects.
static CryptoLink & getCryptoLink()
Returns a reference to the singleton instance.
CryptoLinkError(const char *file, size_t line, const char *what)
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
boost::shared_ptr< RNG > RNGPtr
This value can be used in conversion functions, to be returned when the input is unknown (but a value...
This exception is thrown if there was a problem initializing the crypto library.
static std::string getVersion()
Get version string.
virtual RNGPtr & getRNG()
Get the global RNG.
UnsupportedAlgorithm(const char *file, size_t line, const char *what)
BadKey(const char *file, size_t line, const char *what)