14#include <boost/noncopyable.hpp>
15#include <boost/shared_ptr.hpp>
48typedef boost::shared_ptr<RNG>
RNGPtr;
78 BadKey(
const char* file,
size_t line,
const char*
what) :
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.
This exception is thrown when the underlying library could not handle the key data.
BadKey(const char *file, size_t line, const char *what)
General exception class that is the base for all crypto-related exceptions.
CryptoLinkError(const char *file, size_t line, const char *what)
Singleton entry point and factory class.
Hash * createHash(const HashAlgorithm hash_algorithm)
Factory function for Hash objects.
virtual RNGPtr const & getRNG() const
Get the global RNG.
static CryptoLink & getCryptoLink()
Returns a reference to the singleton instance.
HMAC * createHMAC(const void *secret, size_t secret_len, const HashAlgorithm hash_algorithm)
Factory function for HMAC objects.
static std::string getVersion()
Get version string.
This exception is thrown if there was a problem initializing the crypto library.
InitializationError(const char *file, size_t line, const char *what)
This exception is raised when a general error that was not specifically caught is thrown by the under...
LibraryError(const char *file, size_t line, const char *what)
Botan implementation of RNG.
This exception is thrown when a cryptographic action is requested for an algorithm that is not suppor...
UnsupportedAlgorithm(const char *file, size_t line, const char *what)
boost::shared_ptr< RNG > RNGPtr
Type representing the pointer to the RNG.
boost::shared_ptr< CryptoLinkImpl > CryptoLinkImplPtr
Type representing the pointer to the CryptoLinkImpl.
HashAlgorithm
Hash algorithm identifiers.
Defines the logger used by the top-level component of kea-lfc.