private-key.cpp File Reference
+ Include dependency graph for private-key.cpp:

Go to the source code of this file.

Namespaces

 ndn
 
 ndn::security
 
 ndn::security::transform
 

Macros

#define ENSURE_PRIVATE_KEY_LOADED(key)
 
#define ENSURE_PRIVATE_KEY_NOT_LOADED(key)
 

Functions

unique_ptr< PrivateKey > ndn::security::transform::generatePrivateKey (const KeyParams &keyParams)
 Generate a private key according to keyParams. More...
 
static void ndn::security::transform::opensslInitAlgorithms ()
 
static int ndn::security::transform::passwordCallbackWrapper (char *buf, int size, int rwflag, void *u)
 

Macro Definition Documentation

#define ENSURE_PRIVATE_KEY_LOADED (   key)
Value:
do { \
if ((key) == nullptr) \
BOOST_THROW_EXCEPTION(Error("Private key has not been loaded yet")); \
} while (false)

Definition at line 35 of file private-key.cpp.

#define ENSURE_PRIVATE_KEY_NOT_LOADED (   key)
Value:
do { \
if ((key) != nullptr) \
BOOST_THROW_EXCEPTION(Error("Private key has already been loaded")); \
} while (false)

Definition at line 41 of file private-key.cpp.