crypto.h
1 
21 #ifndef NDN_CRYPTO_H
22 #define NDN_CRYPTO_H
23 
24 #include <ndn-cpp/c/common.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
37 void ndn_digestSha256(const uint8_t *data, size_t dataLength, uint8_t *digest);
38 
49 void
50 ndn_computeHmacWithSha256
51  (const uint8_t *key, size_t keyLength, const uint8_t *data, size_t dataLength,
52  uint8_t *digest);
53 
59 void ndn_generateRandomBytes(uint8_t *buffer, size_t bufferLength);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif