Functions | |
ConstBufferPtr | sha256 (const uint8_t *data, size_t dataLength) |
Compute the sha-256 digest of data. More... | |
Variables | |
static const size_t | SHA256_DIGEST_SIZE = 32 |
number of octets in a SHA256 digest More... | |
ConstBufferPtr ndn::crypto::sha256 | ( | const uint8_t * | data, |
size_t | dataLength | ||
) |
Compute the sha-256 digest of data.
data | Pointer to the input byte array. |
dataLength | The length of data. |
Definition at line 51 of file crypto.cpp.
References ndn::OBufferStream::buf().
Referenced by ndn::PublicKey::computeDigest(), ndn::security::KeyChain::getDefaultKeyParamsForIdentity(), ndn::Data::getFullName(), ndn::security::KeyChain::signWithSha256(), and ndn::Validator::verifySignature().
|
static |
number of octets in a SHA256 digest
Definition at line 43 of file crypto.hpp.
Referenced by ndn::name::Component::fromEscapedString(), ndn::name::Component::fromImplicitSha256Digest(), ndn::name::Component::isImplicitSha256Digest(), ndn::ndn_digestSha256(), and ndn::Validator::verifySignature().