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 | #ifndef NDN_CRYPTO_H |
| 7 | #define NDN_CRYPTO_H |
| 8 | |
| 9 | #include <openssl/ssl.h> |
| 10 | #include <openssl/rsa.h> |
| 11 | |
| 12 | #ifdef __cplusplus |
| 13 | extern "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 | */ |
| 22 | void ndn_digestSha256(const unsigned char *data, unsigned int dataLength, unsigned char *digest); |
| 23 | |
| 24 | #ifdef __cplusplus |
| 25 | } |
| 26 | #endif |
| 27 | |
| 28 | #endif |