#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 keyDerBuf in DER buffer. 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 43 of file public-key.hpp.
| ndn::security::v1::PublicKey::PublicKey | ( | ) |
The default constructor.
Definition at line 35 of file public-key.cpp.
| ndn::security::v1::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 40 of file public-key.cpp.
References decode().
|
inline |
Definition at line 72 of file public-key.hpp.
Referenced by ndn::security::SecPublicInfoSqlite3::addKey(), ndn::security::PibSqlite3::addKey(), ndn::security::v1::operator<<(), and ndn::security::Validator::verifySignature().
|
inline |
Definition at line 78 of file public-key.hpp.
|
inline |
Definition at line 85 of file public-key.hpp.
Referenced by ndn::security::SecPublicInfoSqlite3::addKey(), ndn::security::PibSqlite3::addKey(), ndn::security::v1::Certificate::printCertificate(), ndn::security::KeyChain::selfSign(), and ndn::security::Validator::verifySignature().
| const Block & ndn::security::v1::PublicKey::computeDigest | ( | ) | const |
Definition at line 48 of file public-key.cpp.
References ndn::Buffer::buf(), ndn::crypto::computeSha256Digest(), ndn::Block::encode(), ndn::Block::hasWire(), and ndn::tlv::KeyDigest.
Referenced by ndn::security::Identity::getName().
| void ndn::security::v1::PublicKey::encode | ( | CryptoPP::BufferedTransformation & | out | ) | const |
Definition at line 64 of file public-key.cpp.
References ndn::Buffer::buf().
Referenced by ndn::security::v1::Certificate::encode(), and ndn::security::v1::Certificate::printCertificate().
| void ndn::security::v1::PublicKey::decode | ( | CryptoPP::BufferedTransformation & | in | ) |
Definition at line 74 of file public-key.cpp.
References ndn::Oid::decode(), ndn::EC, ndn::oid::ECDSA, ndn::NONE, ndn::RSA, ndn::oid::RSA, and ndn::Oid::toString().
Referenced by ndn::security::v1::Certificate::decode(), and PublicKey().
|
inline |
Definition at line 103 of file public-key.hpp.
|
inline |
Definition at line 109 of file public-key.hpp.
References ns3::ndn::operator<<().