blob: 68af3e46dfa6a55e1ee7078cde3195a0ea5128ef [file] [log] [blame]
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "crypto.h"
void ndn_digestSha256(const unsigned char *data, unsigned int dataLength, unsigned char *digest)
{
SHA256_CTX sha256;
SHA256_Init(&sha256);
SHA256_Update(&sha256, data, dataLength);
SHA256_Final(digest, &sha256);
}