blob: 0b6be6bbd523389482660bbefa6ca816de2b1a46 [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#ifndef NDN_CRYPTO_H
7#define NDN_CRYPTO_H
8
9#include <openssl/ssl.h>
10#include <openssl/rsa.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/**
17 * Compute the sha-256 digest of data.
18 * @param data Pointer to the input byte array.
19 * @param dataLength The length of data.
20 * @param digest A pointer to a buffer of size SHA256_DIGEST_LENGTH to receive the data.
21 */
22void ndn_digestSha256(const unsigned char *data, unsigned int dataLength, unsigned char *digest);
23
24#ifdef __cplusplus
25}
26#endif
27
28#endif