Namespaces | |
detail | |
pib | |
tpm | |
transform | |
v2 | |
Classes | |
class | CommandInterestPreparer |
Helper class to prepare command interest name. More... | |
class | CommandInterestSigner |
Helper class to create command interests. More... | |
class | DummyPib |
class | DummyTpm |
class | SafeBag |
a secured container for sensitive information(certificate, private key) More... | |
class | SigningInfo |
Signing parameters passed to KeyChain. More... | |
class | ValidatorConfig |
Helper for validator that uses CommandInterest + Config policy and NetworkFetcher. More... | |
class | ValidityPeriod |
Abstraction of validity period. More... | |
Functions | |
NDN_CXX_V2_KEYCHAIN_REGISTER_PIB_BACKEND (DummyPib) | |
NDN_CXX_V2_KEYCHAIN_REGISTER_TPM_BACKEND (DummyTpm) | |
NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (SafeBag) | |
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (SafeBag) | |
SigningInfo | signingByIdentity (const Name &identityName) |
SigningInfo | signingByIdentity (const Identity &identity) |
SigningInfo | signingByKey (const Name &keyName) |
SigningInfo | signingByKey (const Key &key) |
SigningInfo | signingByCertificate (const Name &certName) |
SigningInfo | signingByCertificate (const v2::Certificate &cert) |
SigningInfo | signingWithSha256 () |
std::ostream & | operator<< (std::ostream &os, const SigningInfo &si) |
NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (ValidityPeriod) | |
std::ostream & | operator<< (std::ostream &os, const ValidityPeriod &period) |
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (ValidityPeriod) | |
bool | verifySignature (const uint8_t *blob, size_t blobLen, const uint8_t *sig, size_t sigLen, const v2::PublicKey &pKey) |
Verify blob using key against sig . More... | |
bool | verifySignature (const uint8_t *blob, size_t blobLen, const uint8_t *sig, size_t sigLen, const uint8_t *key, size_t keyLen) |
Verify blob using key against sig . More... | |
static std::tuple< bool, const uint8_t *, size_t, const uint8_t *, size_t > | parse (const Data &data) |
static std::tuple< bool, const uint8_t *, size_t, const uint8_t *, size_t > | parse (const Interest &interest) |
static bool | verifySignature (const std::tuple< bool, const uint8_t *, size_t, const uint8_t *, size_t > ¶ms, const v2::PublicKey &pKey) |
static bool | verifySignature (const std::tuple< bool, const uint8_t *, size_t, const uint8_t *, size_t > ¶ms, const uint8_t *key, size_t keyLen) |
bool | verifySignature (const Data &data, const v2::PublicKey &key) |
Verify data using key . More... | |
bool | verifySignature (const Interest &interest, const v2::PublicKey &key) |
Verify interest using key . More... | |
bool | verifySignature (const Data &data, const pib::Key &key) |
Verify data using key . More... | |
bool | verifySignature (const Interest &interest, const pib::Key &key) |
Verify interest using key . More... | |
bool | verifySignature (const Data &data, const uint8_t *key, size_t keyLen) |
Verify data using key . More... | |
bool | verifySignature (const Interest &interest, const uint8_t *key, size_t keyLen) |
Verify interest using key . More... | |
bool | verifySignature (const Data &data, const v2::Certificate &cert) |
Verify data using cert . More... | |
bool | verifySignature (const Interest &interest, const v2::Certificate &cert) |
Verify interest using cert . More... | |
bool | verifyDigest (const uint8_t *blob, size_t blobLen, const uint8_t *digest, size_t digestLen, DigestAlgorithm algorithm) |
Verify blob against digest using algorithm . More... | |
bool | verifyDigest (const Data &data, DigestAlgorithm algorithm) |
Verify data against digest algorithm . More... | |
bool | verifyDigest (const Interest &interest, DigestAlgorithm algorithm) |
Verify interest against digest algorithm . More... | |
Variables | |
static const uint8_t | DUMMY_CERT [] |
static const uint8_t | DUMMY_SIGNATURE [] |
WireEncodable< SafeBag > | |
WireDecodable< SafeBag > | |
WireEncodable< ValidityPeriod > | |
WireEncodableWithEncodingBuffer< ValidityPeriod > | |
WireDecodable< ValidityPeriod > | |
static const size_t | ISO_DATETIME_SIZE = 15 |
static const size_t | NOT_BEFORE_OFFSET = 0 |
static const size_t | NOT_AFTER_OFFSET = 1 |
ndn::security::NDN_CXX_V2_KEYCHAIN_REGISTER_PIB_BACKEND | ( | DummyPib | ) |
ndn::security::NDN_CXX_V2_KEYCHAIN_REGISTER_TPM_BACKEND | ( | DummyTpm | ) |
ndn::security::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS | ( | SafeBag | ) |
ndn::security::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS | ( | SafeBag | ) |
SigningInfo ndn::security::signingByIdentity | ( | const Name & | identityName | ) |
Definition at line 28 of file signing-helpers.cpp.
References ndn::security::SigningInfo::SIGNER_TYPE_ID.
Referenced by nfd::rib::HostToGatewayReadvertisePolicy::handleNewRoute().
SigningInfo ndn::security::signingByIdentity | ( | const Identity & | identity | ) |
Definition at line 34 of file signing-helpers.cpp.
SigningInfo ndn::security::signingByKey | ( | const Name & | keyName | ) |
Definition at line 40 of file signing-helpers.cpp.
References ndn::security::SigningInfo::SIGNER_TYPE_KEY.
SigningInfo ndn::security::signingByKey | ( | const Key & | key | ) |
Definition at line 46 of file signing-helpers.cpp.
SigningInfo ndn::security::signingByCertificate | ( | const Name & | certName | ) |
Definition at line 52 of file signing-helpers.cpp.
References ndn::security::SigningInfo::SIGNER_TYPE_CERT.
SigningInfo ndn::security::signingByCertificate | ( | const v2::Certificate & | cert | ) |
Definition at line 58 of file signing-helpers.cpp.
References ndn::Data::getName(), and ndn::security::SigningInfo::SIGNER_TYPE_CERT.
SigningInfo ndn::security::signingWithSha256 | ( | ) |
Definition at line 64 of file signing-helpers.cpp.
References ndn::security::SigningInfo::SIGNER_TYPE_SHA256.
std::ostream & ndn::security::operator<< | ( | std::ostream & | os, |
const SigningInfo & | si | ||
) |
Definition at line 169 of file signing-info.cpp.
References ndn::security::SigningInfo::getDigestSha256Identity(), ndn::security::SigningInfo::getSignerName(), ndn::security::SigningInfo::getSignerType(), ndn::security::SigningInfo::SIGNER_TYPE_CERT, ndn::security::SigningInfo::SIGNER_TYPE_ID, ndn::security::SigningInfo::SIGNER_TYPE_KEY, ndn::security::SigningInfo::SIGNER_TYPE_NULL, and ndn::security::SigningInfo::SIGNER_TYPE_SHA256.
ndn::security::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS | ( | ValidityPeriod | ) |
std::ostream & ndn::security::operator<< | ( | std::ostream & | os, |
const ValidityPeriod & | period | ||
) |
Definition at line 166 of file validity-period.cpp.
References ndn::security::ValidityPeriod::getPeriod(), and ndn::time::toIsoString().
ndn::security::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS | ( | ValidityPeriod | ) |
bool ndn::security::verifySignature | ( | const uint8_t * | blob, |
size_t | blobLen, | ||
const uint8_t * | sig, | ||
size_t | sigLen, | ||
const v2::PublicKey & | pKey | ||
) |
Verify blob
using key
against sig
.
This is the core function, all other verifySignature overloads are implemented in terms of this function.
Definition at line 41 of file verification-helpers.cpp.
References ndn::security::transform::boolSink(), ndn::SHA256, and ndn::security::transform::verifierFilter().
Referenced by verifySignature().
bool ndn::security::verifySignature | ( | const uint8_t * | data, |
size_t | dataLen, | ||
const uint8_t * | sig, | ||
size_t | sigLen, | ||
const uint8_t * | key, | ||
size_t | keyLen | ||
) |
Verify blob
using key
against sig
.
Definition at line 57 of file verification-helpers.cpp.
References ndn::security::transform::PublicKey::loadPkcs8(), and verifySignature().
|
static |
Definition at line 72 of file verification-helpers.cpp.
References ndn::Data::getSignature(), ndn::Signature::getValue(), ndn::Block::size(), ndn::Block::value(), ndn::Block::value_size(), and ndn::Data::wireEncode().
Referenced by verifyDigest(), and verifySignature().
|
static |
Definition at line 87 of file verification-helpers.cpp.
References ndn::Interest::getName(), ndn::signed_interest::MIN_SIZE, ndn::signed_interest::POS_SIG_VALUE, ndn::Name::size(), ndn::Block::value(), ndn::Block::value_size(), and ndn::Name::wireEncode().
|
static |
Definition at line 108 of file verification-helpers.cpp.
References verifySignature().
|
static |
Definition at line 126 of file verification-helpers.cpp.
References verifySignature().
bool ndn::security::verifySignature | ( | const Data & | data, |
const v2::PublicKey & | key | ||
) |
Verify data
using key
.
Definition at line 144 of file verification-helpers.cpp.
References parse(), and verifySignature().
bool ndn::security::verifySignature | ( | const Interest & | interest, |
const v2::PublicKey & | key | ||
) |
Verify interest
using key
.
Definition at line 150 of file verification-helpers.cpp.
References parse(), and verifySignature().
Verify data
using key
.
Definition at line 156 of file verification-helpers.cpp.
References ndn::security::pib::Key::getPublicKey(), parse(), and verifySignature().
Verify interest
using key
.
Definition at line 162 of file verification-helpers.cpp.
References ndn::security::pib::Key::getPublicKey(), parse(), and verifySignature().
bool ndn::security::verifySignature | ( | const Data & | data, |
const uint8_t * | key, | ||
size_t | keyLen | ||
) |
Verify data
using key
.
Definition at line 168 of file verification-helpers.cpp.
References parse(), and verifySignature().
bool ndn::security::verifySignature | ( | const Interest & | interest, |
const uint8_t * | key, | ||
size_t | keyLen | ||
) |
Verify interest
using key
.
Definition at line 174 of file verification-helpers.cpp.
References parse(), and verifySignature().
bool ndn::security::verifySignature | ( | const Data & | data, |
const v2::Certificate & | cert | ||
) |
Verify data
using cert
.
Definition at line 180 of file verification-helpers.cpp.
References ndn::Data::getContent(), parse(), ndn::Block::value(), ndn::Block::value_size(), and verifySignature().
bool ndn::security::verifySignature | ( | const Interest & | interest, |
const v2::Certificate & | cert | ||
) |
Verify interest
using cert
.
Definition at line 186 of file verification-helpers.cpp.
References ndn::Data::getContent(), parse(), ndn::Block::value(), ndn::Block::value_size(), and verifySignature().
bool ndn::security::verifyDigest | ( | const uint8_t * | blob, |
size_t | blobLen, | ||
const uint8_t * | digest, | ||
size_t | digestLen, | ||
DigestAlgorithm | algorithm | ||
) |
Verify blob
against digest
using algorithm
.
This is the core function, all other verifyDigest overloads are implemented in terms of this function.
Definition at line 194 of file verification-helpers.cpp.
References ndn::OBufferStream::buf(), ndn::security::transform::digestFilter(), and ndn::security::transform::streamSink().
Referenced by verifyDigest().
bool ndn::security::verifyDigest | ( | const Data & | data, |
DigestAlgorithm | algorithm | ||
) |
Verify data
against digest algorithm
.
Definition at line 216 of file verification-helpers.cpp.
References parse(), and verifyDigest().
bool ndn::security::verifyDigest | ( | const Interest & | interest, |
DigestAlgorithm | algorithm | ||
) |
Verify interest
against digest algorithm
.
Definition at line 235 of file verification-helpers.cpp.
References parse(), and verifyDigest().
|
static |
Definition at line 30 of file dummy-keychain.cpp.
Referenced by ndn::security::DummyPib::getCertificate(), ndn::security::DummyPib::getDefaultCertificateOfKey(), and ndn::security::DummyPib::getKeyBits().
|
static |
Definition at line 47 of file dummy-keychain.cpp.
ndn::security::WireEncodable< SafeBag > |
Definition at line 32 of file safe-bag.cpp.
ndn::security::WireDecodable< SafeBag > |
Definition at line 33 of file safe-bag.cpp.
ndn::security::WireEncodable< ValidityPeriod > |
Definition at line 30 of file validity-period.cpp.
ndn::security::WireEncodableWithEncodingBuffer< ValidityPeriod > |
Definition at line 31 of file validity-period.cpp.
ndn::security::WireDecodable< ValidityPeriod > |
Definition at line 32 of file validity-period.cpp.
|
static |
Definition at line 36 of file validity-period.cpp.
Referenced by ndn::security::ValidityPeriod::wireDecode().
|
static |
Definition at line 37 of file validity-period.cpp.
Referenced by ndn::security::ValidityPeriod::wireDecode().
|
static |
Definition at line 38 of file validity-period.cpp.
Referenced by ndn::security::ValidityPeriod::wireDecode().