Functions | |
ConstBufferPtr | computeSha256Digest (const uint8_t *data, size_t dataLength) |
Compute the sha-256 digest of data. More... | |
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::computeSha256Digest | ( | 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 31 of file crypto.cpp.
References ndn::OBufferStream::buf(), and ndn::SHA256.
Referenced by ndn::security::v1::PublicKey::computeDigest(), ndn::security::KeyChain::getDefaultKeyParamsForIdentity(), ndn::Data::getFullName(), sha256(), ndn::security::KeyChain::signWithSha256(), and ndn::security::Validator::verifySignature().
|
inline |
Compute the sha-256 digest of data.
Definition at line 50 of file crypto.hpp.
References computeSha256Digest().
|
static |
number of octets in a SHA256 digest
Definition at line 32 of file crypto.hpp.
Referenced by ndn::name::Component::fromEscapedString(), ndn::name::Component::fromImplicitSha256Digest(), ndn::name::Component::isImplicitSha256Digest(), and ndn::security::Validator::verifySignature().