23 #include "../encoding/buffer-stream.hpp"
25 #include "../security/v1/cryptopp.hpp"
36 CryptoPP::StringSource(data, dataLength,
true,
37 new CryptoPP::HashFilter(hash,
new CryptoPP::FileSink(os)));
40 catch (CryptoPP::Exception& e) {
Copyright (c) 2013-2016 Regents of the University of California.
Use the SHA256 hash of the public key as the key id.
shared_ptr< Buffer > buf()
Flush written data to the stream and return shared pointer to the underlying buffer.
ConstBufferPtr computeSha256Digest(const uint8_t *data, size_t dataLength)
Compute the sha-256 digest of data.
implements an output stream that constructs ndn::Buffer
shared_ptr< const Buffer > ConstBufferPtr