Namespaces | |
| detail | |
| pib | |
| tpm | |
| transform | |
| v2 | |
Classes | |
| class | DummyPib |
| class | DummyTpm |
| class | InterestSigner |
| Helper class to create signed Interests. More... | |
| struct | MakeCertificateOptions |
| Options to KeyChain::makeCertificate() . More... | |
| 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 SignedInterest + CommandInterest + Config policy and NetworkFetcher. More... | |
| class | ValidityPeriod |
| Represents a ValidityPeriod TLV element. More... | |
Enumerations | |
| enum | SignedInterestFormat { SignedInterestFormat::V03, SignedInterestFormat::V02 } |
Functions | |
| NDN_CXX_KEYCHAIN_REGISTER_PIB_BACKEND (DummyPib) | |
| NDN_CXX_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 Certificate &cert) |
| SigningInfo | signingWithSha256 () |
| std::ostream & | operator<< (std::ostream &os, const SigningInfo &si) |
| std::ostream & | operator<< (std::ostream &os, const SignedInterestFormat &format) |
| 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 InputBuffers &blobs, span< const uint8_t > sig, const transform::PublicKey &key) |
Verify blobs using key against sig. More... | |
| bool | verifySignature (const InputBuffers &blobs, span< const uint8_t > sig, span< const uint8_t > key) |
Verify blobs using key against sig. More... | |
| static ParseResult | parse (const Data &data) |
| static ParseResult | parse (const Interest &interest) |
| static bool | verifySignature (const ParseResult ¶ms, const transform::PublicKey &key) |
| static bool | verifySignature (const ParseResult ¶ms, span< const uint8_t > key) |
| static bool | verifySignature (const ParseResult ¶ms, const tpm::Tpm &tpm, const Name &keyName, DigestAlgorithm digestAlgorithm) |
| static bool | verifyDigest (const ParseResult ¶ms, DigestAlgorithm algorithm) |
| bool | verifySignature (const Data &data, span< const uint8_t > key) |
Verify data using key. More... | |
| bool | verifySignature (const Interest &interest, span< const uint8_t > key) |
Verify interest using key. More... | |
| 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 optional< Certificate > &cert) |
Verify data using cert. More... | |
| bool | verifySignature (const Interest &interest, const optional< 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... | |
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 |
|
strong |
| Enumerator | |
|---|---|
| V03 | Sign Interest using Packet Specification v0.3 semantics. |
| V02 | Sign Interest using Packet Specification v0.2 semantics. |
Definition at line 39 of file signing-info.hpp.
| ndn::security::NDN_CXX_KEYCHAIN_REGISTER_PIB_BACKEND | ( | DummyPib | ) |
| ndn::security::NDN_CXX_KEYCHAIN_REGISTER_TPM_BACKEND | ( | DummyTpm | ) |
| ndn::security::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS | ( | SafeBag | ) |
Referenced by ndn::security::SafeBag::wireEncode(), and ndn::security::ValidityPeriod::wireEncode().
| ndn::security::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS | ( | SafeBag | ) |
Referenced by ndn::security::SafeBag::getEncryptedKey().
| 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.
Referenced by ndn::security::v2::parseLocatorUri().
| 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 Certificate & | cert | ) |
Definition at line 58 of file signing-helpers.cpp.
References 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 188 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_HMAC, ndn::security::SigningInfo::SIGNER_TYPE_ID, ndn::security::SigningInfo::SIGNER_TYPE_KEY, ndn::security::SigningInfo::SIGNER_TYPE_NULL, ndn::security::SigningInfo::SIGNER_TYPE_SHA256, and ndn::to_underlying().
| std::ostream & ndn::security::operator<< | ( | std::ostream & | os, |
| const SignedInterestFormat & | format | ||
| ) |
Definition at line 208 of file signing-info.cpp.
References ndn::to_underlying(), V02, and V03.
| ndn::security::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS | ( | ValidityPeriod | ) |
| std::ostream & ndn::security::operator<< | ( | std::ostream & | os, |
| const ValidityPeriod & | period | ||
| ) |
Definition at line 160 of file validity-period.cpp.
References ndn::security::ValidityPeriod::getPeriod(), and ndn::time::toIsoString().
| ndn::security::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS | ( | ValidityPeriod | ) |
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const InputBuffers & | blobs, |
| span< const uint8_t > | sig, | ||
| const transform::PublicKey & | key | ||
| ) |
Verify blobs using key against sig.
Definition at line 64 of file verification-helpers.cpp.
References ndn::security::transform::boolSink(), ndn::SHA256, and ndn::security::transform::verifierFilter().
Referenced by ndn::security::v2::ValidationState::addCertificate(), verifySignature(), ndn::security::v2::DataValidationState::~DataValidationState(), and ndn::security::v2::InterestValidationState::~InterestValidationState().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const InputBuffers & | blobs, |
| span< const uint8_t > | sig, | ||
| span< const uint8_t > | key | ||
| ) |
Verify blobs using key against sig.
key must be a public key in PKCS #8 format. Definition at line 80 of file verification-helpers.cpp.
References ndn::security::transform::PublicKey::loadPkcs8(), and verifySignature().
|
static |
Definition at line 94 of file verification-helpers.cpp.
References ndn::Data::extractSignedRanges(), ndn::Data::getSignatureInfo(), ndn::Data::getSignatureValue(), and ndn::Block::value_bytes().
Referenced by ndn::Block::value_bytes(), and verifySignature().
|
static |
Definition at line 106 of file verification-helpers.cpp.
References ndn::Interest::extractSignedRanges(), ndn::Interest::getName(), ndn::Interest::getSignatureInfo(), ndn::Interest::getSignatureValue(), info, ndn::Block::isValid(), ndn::signed_interest::MIN_SIZE, ndn::signed_interest::POS_SIG_INFO, ndn::signed_interest::POS_SIG_VALUE, ndn::Name::size(), ndn::Block::value(), ndn::Block::value_bytes(), ndn::Block::value_size(), ndn::Name::wireEncode(), and ndn::Interest::wireEncode().
|
static |
Definition at line 138 of file verification-helpers.cpp.
References verifySignature().
|
static |
Definition at line 144 of file verification-helpers.cpp.
References verifySignature().
|
static |
Definition at line 150 of file verification-helpers.cpp.
References ndn::security::tpm::Tpm::verify().
|
static |
Definition at line 157 of file verification-helpers.cpp.
References ndn::OBufferStream::buf(), ndn::security::transform::digestFilter(), and ndn::security::transform::streamSink().
Referenced by verifySignature().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const Data & | data, |
| span< const uint8_t > | key | ||
| ) |
Verify data using key.
key must be a public key in PKCS #8 format. Definition at line 182 of file verification-helpers.cpp.
References parse(), and verifySignature().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const Interest & | interest, |
| span< const uint8_t > | key | ||
| ) |
Verify interest using key.
key must be a public key in PKCS #8 format. Definition at line 188 of file verification-helpers.cpp.
References parse(), and verifySignature().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const Data & | data, |
| const transform::PublicKey & | key | ||
| ) |
Verify data using key.
Definition at line 194 of file verification-helpers.cpp.
References parse(), and verifySignature().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const Interest & | interest, |
| const transform::PublicKey & | key | ||
| ) |
Verify interest using key.
Definition at line 200 of file verification-helpers.cpp.
References parse(), and verifySignature().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const Data & | data, |
| const pib::Key & | key | ||
| ) |
Verify data using key.
Definition at line 206 of file verification-helpers.cpp.
References ndn::security::pib::Key::getPublicKey(), parse(), and verifySignature().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const Interest & | interest, |
| const pib::Key & | key | ||
| ) |
Verify interest using key.
Definition at line 212 of file verification-helpers.cpp.
References ndn::security::pib::Key::getPublicKey(), parse(), and verifySignature().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const Data & | data, |
| const optional< Certificate > & | cert | ||
| ) |
Verify data using cert.
If cert is nullopt, data assumed to be self-verifiable (with digest or attributes)
Definition at line 218 of file verification-helpers.cpp.
References ndn::tlv::DigestSha256, parse(), ndn::SHA256, verifyDigest(), and verifySignature().
| NDN_CXX_NODISCARD bool ndn::security::verifySignature | ( | const Interest & | interest, |
| const optional< Certificate > & | cert | ||
| ) |
Verify interest using cert.
If cert is nullptr, interest assumed to be self-verifiable (with digest or attributes)
Definition at line 234 of file verification-helpers.cpp.
References ndn::tlv::DigestSha256, parse(), ndn::SHA256, verifyDigest(), and verifySignature().
| NDN_CXX_NODISCARD 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 250 of file verification-helpers.cpp.
References parse(), and verifySignature().
| NDN_CXX_NODISCARD 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 257 of file verification-helpers.cpp.
References parse(), and verifySignature().
|
static |
Definition at line 30 of file dummy-keychain.cpp.
|
static |
Definition at line 47 of file dummy-keychain.cpp.
Referenced by ndn::security::tpm::DummyKeyHandle::DummyKeyHandle().
| 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().