blob: 68af3e46dfa6a55e1ee7078cde3195a0ea5128ef [file] [log] [blame]
Jeff Thompson3af7e792013-08-23 14:22:11 -07001/**
2 * @author: Jeff Thompson
3 * See COPYING for copyright and distribution information.
4 */
5
6#include "crypto.h"
7
8void ndn_digestSha256(const unsigned char *data, unsigned int dataLength, unsigned char *digest)
9{
10 SHA256_CTX sha256;
11 SHA256_Init(&sha256);
12 SHA256_Update(&sha256, data, dataLength);
13 SHA256_Final(digest, &sha256);
14}