blob: 0b6be6bbd523389482660bbefa6ca816de2b1a46 [file] [log] [blame]
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_CRYPTO_H
#define NDN_CRYPTO_H
#include <openssl/ssl.h>
#include <openssl/rsa.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* Compute the sha-256 digest of data.
* @param data Pointer to the input byte array.
* @param dataLength The length of data.
* @param digest A pointer to a buffer of size SHA256_DIGEST_LENGTH to receive the data.
*/
void ndn_digestSha256(const unsigned char *data, unsigned int dataLength, unsigned char *digest);
#ifdef __cplusplus
}
#endif
#endif