All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ndn::PublicKey Class Reference

#include <public-key.hpp>

Data Structures

class  Error
 

Public Member Functions

 PublicKey ()
 The default constructor. More...
 
 PublicKey (const uint8_t *keyDerBuf, size_t keyDerSize)
 Create a new PublicKey with the given values. More...
 
const Bufferget () const
 
void set (const uint8_t *keyDerBuf, size_t keyDerSize)
 
void encode (CryptoPP::BufferedTransformation &out) const
 
void decode (CryptoPP::BufferedTransformation &in)
 
bool operator== (const PublicKey &key) const
 
bool operator!= (const PublicKey &key) const
 

Detailed Description

Definition at line 19 of file public-key.hpp.

Constructor & Destructor Documentation

ndn::PublicKey::PublicKey ( )

The default constructor.

Definition at line 20 of file public-key.cpp.

ndn::PublicKey::PublicKey ( const uint8_t *  keyDerBuf,
size_t  keyDerSize 
)

Create a new PublicKey with the given values.

Parameters
algorithmThe algorithm of the public key.
keyDerThe blob of the PublicKeyInfo in terms of DER.
Exceptions
PublicKey::ErrorIf algorithm is not supported or keyDer cannot be decoded
Parameters
algorithmThe algorithm of the public key.
keyDerThe blob of the PublicKeyInfo in terms of DER.

Definition at line 29 of file public-key.cpp.

Member Function Documentation

void ndn::PublicKey::decode ( CryptoPP::BufferedTransformation &  in)

Definition at line 46 of file public-key.cpp.

void ndn::PublicKey::encode ( CryptoPP::BufferedTransformation &  out) const

Definition at line 36 of file public-key.cpp.

const Buffer& ndn::PublicKey::get ( ) const
inline

Definition at line 47 of file public-key.hpp.

bool ndn::PublicKey::operator!= ( const PublicKey key) const
inline

Definition at line 72 of file public-key.hpp.

bool ndn::PublicKey::operator== ( const PublicKey key) const
inline

Definition at line 66 of file public-key.hpp.

void ndn::PublicKey::set ( const uint8_t *  keyDerBuf,
size_t  keyDerSize 
)
inline

Definition at line 53 of file public-key.hpp.