esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
keychain.hpp File Reference
#include "../keychain/ec.hpp"
#include "../keychain/keychain.hpp"
#include "io.hpp"

Go to the source code of this file.

Namespaces

namespace  ndnph
 
namespace  ndnph::cli
 

Functions

KeyChainndnph::cli::openKeyChain ()
 Open KeyChain according to `NDNPH_KEYCHAIN` environ.
 
std::string ndnph::cli::checkKeyChainId (const std::string &id)
 Check KeyChain object ID has the proper format.
 
void ndnph::cli::loadKey (Region &region, const std::string &id, EcPrivateKey &pvt, EcPublicKey &pub)
 Load a key from the KeyChain.
 
Data ndnph::cli::loadCertificate (Region &region, const std::string &id)
 Load a certificate from the KeyChain.
 
Data ndnph::cli::inputCertificate (Region &region, EcPublicKey *pub=nullptr, std::istream &is=std::cin)
 Load a certificate in binary format from input stream.