private-key.cpp File Reference
#include "ndn-cxx/security/transform/private-key.hpp"
#include "ndn-cxx/security/transform/base64-decode.hpp"
#include "ndn-cxx/security/transform/base64-encode.hpp"
#include "ndn-cxx/security/transform/buffer-source.hpp"
#include "ndn-cxx/security/transform/digest-filter.hpp"
#include "ndn-cxx/security/transform/stream-sink.hpp"
#include "ndn-cxx/security/transform/stream-source.hpp"
#include "ndn-cxx/security/impl/openssl-helper.hpp"
#include "ndn-cxx/security/key-params.hpp"
#include "ndn-cxx/encoding/buffer-stream.hpp"
#include "ndn-cxx/util/random.hpp"
#include "ndn-cxx/util/scope.hpp"
#include <boost/lexical_cast.hpp>
#include <cstring>
#include <openssl/ec.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
+ Include dependency graph for private-key.cpp:

Go to the source code of this file.

Namespaces

 ndn
 
 ndn::security
 Contains the ndn-cxx security framework.
 
 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...
 

Macro Definition Documentation

◆ ENSURE_PRIVATE_KEY_LOADED

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

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

◆ ENSURE_PRIVATE_KEY_NOT_LOADED

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

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