#include <public-key.hpp>
Classes | |
class | Error |
Public Member Functions | |
PublicKey () | |
The default constructor. More... | |
PublicKey (const uint8_t *keyDerBuf, size_t keyDerSize) | |
Create a new PublicKey from. More... | |
const Buffer & | get () const |
void | set (const uint8_t *keyDerBuf, size_t keyDerSize) |
KeyType | getKeyType () const |
const Block & | computeDigest () const |
void | encode (CryptoPP::BufferedTransformation &out) const |
void | decode (CryptoPP::BufferedTransformation &in) |
bool | operator== (const PublicKey &key) const |
bool | operator!= (const PublicKey &key) const |
Definition at line 41 of file public-key.hpp.
ndn::PublicKey::PublicKey | ( | ) |
The default constructor.
Definition at line 33 of file public-key.cpp.
ndn::PublicKey::PublicKey | ( | const uint8_t * | keyDerBuf, |
size_t | keyDerSize | ||
) |
Create a new PublicKey from.
keyDerBuf | in DER buffer |
keyDerBuf | The pointer to the first byte of buffer containing DER of public key |
keyDerSize | Size of the buffer |
PublicKey::Error | If DER in buffer cannot be decoded |
Definition at line 38 of file public-key.cpp.
References decode().
|
inline |
Definition at line 70 of file public-key.hpp.
Referenced by ndn::SecPublicInfoSqlite3::addKey(), ndn::security::PibSqlite3::addKey(), ndn::operator<<(), and ndn::Validator::verifySignature().
|
inline |
Definition at line 76 of file public-key.hpp.
|
inline |
Definition at line 83 of file public-key.hpp.
Referenced by ndn::SecPublicInfoSqlite3::addKey(), ndn::security::PibSqlite3::addKey(), ndn::Certificate::printCertificate(), ndn::security::KeyChain::selfSign(), and ndn::Validator::verifySignature().
const Block & ndn::PublicKey::computeDigest | ( | ) | const |
Definition at line 46 of file public-key.cpp.
References ndn::Buffer::buf(), ndn::Block::encode(), ndn::Block::hasWire(), ndn::tlv::KeyDigest, and ndn::crypto::sha256().
void ndn::PublicKey::encode | ( | CryptoPP::BufferedTransformation & | out | ) | const |
Definition at line 62 of file public-key.cpp.
References ndn::Buffer::buf().
Referenced by ndn::Certificate::encode(), and ndn::Certificate::printCertificate().
void ndn::PublicKey::decode | ( | CryptoPP::BufferedTransformation & | in | ) |
Definition at line 72 of file public-key.cpp.
References ndn::OID::decode(), ndn::oid::ECDSA, ndn::KEY_TYPE_ECDSA, ndn::KEY_TYPE_NULL, ndn::KEY_TYPE_RSA, ndn::oid::RSA, and ndn::OID::toString().
Referenced by ndn::Certificate::decode(), and PublicKey().
|
inline |
Definition at line 101 of file public-key.hpp.
|
inline |
Definition at line 107 of file public-key.hpp.