Jeff Thompson | 3af7e79 | 2013-08-23 14:22:11 -0700 | [diff] [blame^] | 1 | /** |
2 | * @author: Jeff Thompson | ||||
3 | * See COPYING for copyright and distribution information. | ||||
4 | */ | ||||
5 | |||||
6 | #include "crypto.h" | ||||
7 | |||||
8 | void 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 | } |