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 transform::PublicKey &key) |
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 ParseResult | parse (const Data &data) |
static ParseResult | parse (const Interest &interest) |
static bool | verifySignature (ParseResult params, const transform::PublicKey &key) |
static bool | verifySignature (ParseResult params, const tpm::Tpm &tpm, const Name &keyName, DigestAlgorithm digestAlgorithm) |
static bool | verifySignature (ParseResult params, const uint8_t *key, size_t keyLen) |
bool | verifySignature (const Data &data, const transform::PublicKey &key) |
Verify data using key . More... | |
bool | verifySignature (const Interest &interest, const transform::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 | verifySignature (const Data &data, const tpm::Tpm &tpm, const Name &keyName, DigestAlgorithm digestAlgorithm) |
Verify data using tpm and keyName with the digestAlgorithm . More... | |
bool | verifySignature (const Interest &interest, const tpm::Tpm &tpm, const Name &keyName, DigestAlgorithm digestAlgorithm) |
Verify interest using tpm and keyName with the digestAlgorithm . 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 200 of file signing-info.cpp.
References ndn::security::SigningInfo::getDigestSha256Identity(), ndn::security::SigningInfo::getSignerName(), ndn::security::SigningInfo::getSignerType(), NDN_THROW, ndn::security::SigningInfo::SIGNER_TYPE_CERT, ndn::security::SigningInfo::SIGNER_TYPE_HMAC, 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 152 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 transform::PublicKey & | key | ||
) |
Verify blob
using key
against sig
.
Definition at line 56 of file verification-helpers.cpp.
References ndn::security::transform::boolSink(), ndn::SHA256, sig, sigLen, and ndn::security::transform::verifierFilter().
Referenced by verifySignature().
bool ndn::security::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
.
key
must be a public key in PKCS #8 format. Definition at line 72 of file verification-helpers.cpp.
References ndn::security::transform::PublicKey::loadPkcs8(), sig, sigLen, and verifySignature().
|
static |
Definition at line 87 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 102 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 123 of file verification-helpers.cpp.
References verifySignature().
|
static |
Definition at line 130 of file verification-helpers.cpp.
References ndn::security::tpm::Tpm::verify().
|
static |
Definition at line 138 of file verification-helpers.cpp.
References verifySignature().
bool ndn::security::verifySignature | ( | const Data & | data, |
const transform::PublicKey & | key | ||
) |
Verify data
using key
.
Definition at line 145 of file verification-helpers.cpp.
References parse(), and verifySignature().
bool ndn::security::verifySignature | ( | const Interest & | interest, |
const transform::PublicKey & | key | ||
) |
Verify interest
using key
.
Definition at line 151 of file verification-helpers.cpp.
References parse(), and verifySignature().
Verify data
using key
.
Definition at line 157 of file verification-helpers.cpp.
References ndn::security::pib::Key::getPublicKey(), parse(), and verifySignature().
Verify interest
using key
.
Definition at line 163 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
.
key
must be a public key in PKCS #8 format. Definition at line 169 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
.
key
must be a public key in PKCS #8 format. Definition at line 175 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 181 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 187 of file verification-helpers.cpp.
References ndn::Data::getContent(), parse(), ndn::Block::value(), ndn::Block::value_size(), and verifySignature().
bool ndn::security::verifySignature | ( | const Data & | data, |
const tpm::Tpm & | tpm, | ||
const Name & | keyName, | ||
DigestAlgorithm | digestAlgorithm | ||
) |
Verify data
using tpm
and keyName
with the digestAlgorithm
.
Definition at line 193 of file verification-helpers.cpp.
References parse(), and verifySignature().
bool ndn::security::verifySignature | ( | const Interest & | interest, |
const tpm::Tpm & | tpm, | ||
const Name & | keyName, | ||
DigestAlgorithm | digestAlgorithm | ||
) |
Verify interest
using tpm
and keyName
with the digestAlgorithm
.
Definition at line 200 of file verification-helpers.cpp.
References parse(), 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
.
Definition at line 209 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 231 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 239 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 1 of file safe-bag.cpp.
ndn::security::WireDecodable< SafeBag > |
Definition at line 1 of file safe-bag.cpp.
ndn::security::WireEncodable< ValidityPeriod > |
Definition at line 1 of file validity-period.cpp.
ndn::security::WireEncodableWithEncodingBuffer< ValidityPeriod > |
Definition at line 1 of file validity-period.cpp.
ndn::security::WireDecodable< ValidityPeriod > |
Definition at line 1 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().