#include "ndn-cxx/security/verification-helpers.hpp"
#include "ndn-cxx/data.hpp"
#include "ndn-cxx/interest.hpp"
#include "ndn-cxx/encoding/buffer-stream.hpp"
#include "ndn-cxx/security/impl/openssl.hpp"
#include "ndn-cxx/security/pib/key.hpp"
#include "ndn-cxx/security/tpm/key-handle.hpp"
#include "ndn-cxx/security/tpm/tpm.hpp"
#include "ndn-cxx/security/transform/bool-sink.hpp"
#include "ndn-cxx/security/transform/buffer-source.hpp"
#include "ndn-cxx/security/transform/digest-filter.hpp"
#include "ndn-cxx/security/transform/public-key.hpp"
#include "ndn-cxx/security/transform/stream-sink.hpp"
#include "ndn-cxx/security/transform/verifier-filter.hpp"
#include "ndn-cxx/security/v2/certificate.hpp"
Go to the source code of this file.
Namespaces | |
ndn | |
Copyright (c) 2011-2015 Regents of the University of California. | |
ndn::security | |
Functions | |
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 . More... | |
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 . More... | |
static ParseResult | ndn::security::parse (const Data &data) |
static ParseResult | ndn::security::parse (const Interest &interest) |
static bool | ndn::security::verifySignature (ParseResult params, const transform::PublicKey &key) |
static bool | ndn::security::verifySignature (ParseResult params, const tpm::Tpm &tpm, const Name &keyName, DigestAlgorithm digestAlgorithm) |
static bool | ndn::security::verifySignature (ParseResult params, const uint8_t *key, size_t keyLen) |
bool | ndn::security::verifySignature (const Data &data, const transform::PublicKey &key) |
Verify data using key . More... | |
bool | ndn::security::verifySignature (const Interest &interest, const transform::PublicKey &key) |
Verify interest using key . More... | |
bool | ndn::security::verifySignature (const Data &data, const pib::Key &key) |
Verify data using key . More... | |
bool | ndn::security::verifySignature (const Interest &interest, const pib::Key &key) |
Verify interest using key . More... | |
bool | ndn::security::verifySignature (const Data &data, const uint8_t *key, size_t keyLen) |
Verify data using key . More... | |
bool | ndn::security::verifySignature (const Interest &interest, const uint8_t *key, size_t keyLen) |
Verify interest using key . More... | |
bool | ndn::security::verifySignature (const Data &data, const v2::Certificate &cert) |
Verify data using cert . More... | |
bool | ndn::security::verifySignature (const Interest &interest, const v2::Certificate &cert) |
Verify interest using cert . More... | |
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 . More... | |
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 . More... | |
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 . More... | |
bool | ndn::security::verifyDigest (const Data &data, DigestAlgorithm algorithm) |
Verify data against digest algorithm . More... | |
bool | ndn::security::verifyDigest (const Interest &interest, DigestAlgorithm algorithm) |
Verify interest against digest algorithm . More... | |
bool isParsable = false |
Definition at line 46 of file verification-helpers.cpp.
const uint8_t* buf = nullptr |
Definition at line 47 of file verification-helpers.cpp.
Referenced by ndn::util::Sqlite3Statement::bind(), ndn::Block::Block(), ndn::security::tpm::Tpm::decrypt(), ndn::detail::cfstring::fromBuffer(), ndn::Block::fromBuffer(), ndn::security::transform::PrivateKey::getKeyDigest(), ndn::security::transform::PrivateKey::loadPkcs1(), ndn::security::transform::PrivateKey::loadPkcs1Base64(), ndn::security::transform::PublicKey::loadPkcs8(), ndn::security::transform::PrivateKey::loadPkcs8(), ndn::security::transform::PublicKey::loadPkcs8Base64(), ndn::security::transform::PrivateKey::loadPkcs8Base64(), ndn::security::transform::PrivateKey::loadRaw(), ndn::security::tpm::makeCFDataNoCopy(), ndn::net::NetlinkMessage::NetlinkMessage(), ndn::util::Sha256::operator<<(), ndn::util::operator<<(), ndn::security::transform::passwordCallbackWrapper(), ns3::ndn::Ns3BufferIteratorSource::read(), ndn::security::detail::Bio::read(), ns3::RocketfuelMapReader::Read(), ndn::io::saveBuffer(), ndn::security::tpm::KeyHandle::sign(), ndn::security::tpm::BackEndOsx::sign(), ndn::security::tpm::Tpm::sign(), ndn::util::Sha256::toString(), ndn::security::tpm::KeyHandle::verify(), ndn::security::tpm::Tpm::verify(), ndn::security::transform::StepSource::write(), ndn::security::transform::Downstream::write(), and ndn::security::detail::Bio::write().
size_t bufLen = 0 |
Definition at line 48 of file verification-helpers.cpp.
Referenced by ndn::security::tpm::KeyHandle::verify(), and ndn::security::tpm::Tpm::verify().
const uint8_t* sig = nullptr |
Definition at line 49 of file verification-helpers.cpp.
Referenced by ndn::security::transform::verifierFilter(), ndn::security::tpm::KeyHandle::verify(), ndn::security::tpm::Tpm::verify(), and ndn::security::verifySignature().
size_t sigLen = 0 |
Definition at line 50 of file verification-helpers.cpp.
Referenced by ndn::security::transform::verifierFilter(), ndn::security::tpm::KeyHandle::verify(), ndn::security::tpm::Tpm::verify(), and ndn::security::verifySignature().