| * Copyright (C) 2013 Regents of the University of California. |
| * See COPYING for copyright and distribution information. |
| #include "../security/cryptopp.hpp" |
| void ndn_digestSha256(const uint8_t *data, size_t dataLength, uint8_t *digest) |
| using namespace CryptoPP; |
| StringSource(data, dataLength, true, new HashFilter(hash, new ArraySink(digest, crypto::SHA256_DIGEST_SIZE))); |
| catch(CryptoPP::Exception& e) |
| sha256(const uint8_t *data, size_t dataLength) |
| using namespace CryptoPP; |
| StringSource(data, dataLength, true, new HashFilter(hash, new FileSink(os))); |
| catch(CryptoPP::Exception& e) |