c/util: Making util/crypto.h a public header

Change-Id: Ie63d3b5b206ae7e027e11077b6c0a039ed75eb92
diff --git a/Makefile.am b/Makefile.am
index 748321d..79ee8e4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -65,7 +65,6 @@
   src/c/transport/udp-transport.h \
   src/c/util/blob.h \
   src/c/util/crypto.c \
-  src/c/util/crypto.h \
   src/c/util/dynamic-uint8-array.c \
   src/c/util/dynamic-uint8-array.h \
   src/c/util/ndn_memory.c \
diff --git a/include/Makefile.am b/include/Makefile.am
index 2f0a01d..d2729b4 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -8,7 +8,8 @@
 ndn_cpp_c_headers = \
   $(wildcard ndn-cpp/*.h) \
   $(wildcard ndn-cpp/c/*.*) \
-  $(wildcard ndn-cpp/c/encoding/*.*)
+  $(wildcard ndn-cpp/c/encoding/*.*) \
+  $(wildcard ndn-cpp/c/util/*.*)
 
 # Public C++ headers.
 # Use ndn-cpp/*.hpp instead of *.* to not overwrite *.h from above.
diff --git a/src/c/util/crypto.h b/include/ndn-cpp/c/util/crypto.h
similarity index 100%
rename from src/c/util/crypto.h
rename to include/ndn-cpp/c/util/crypto.h
diff --git a/src/c/util/crypto.c b/src/c/util/crypto.c
index ec13f68..e8dfbfd 100644
--- a/src/c/util/crypto.c
+++ b/src/c/util/crypto.c
@@ -4,7 +4,7 @@
  * See COPYING for copyright and distribution information.
  */
 
-#include "crypto.h"
+#include "ndn-cpp/c/util/crypto.h"
 
 void ndn_digestSha256(const uint8_t *data, size_t dataLength, uint8_t *digest)
 {
diff --git a/src/util/ndnd-id-fetcher.hpp b/src/util/ndnd-id-fetcher.hpp
index 4f5758d..843eb83 100644
--- a/src/util/ndnd-id-fetcher.hpp
+++ b/src/util/ndnd-id-fetcher.hpp
@@ -9,7 +9,7 @@
 #define NDN_NDND_ID_FETCHER_HPP
 
 #include <ndn-cpp/common.hpp>
-#include "../c/util/crypto.h"
+#include "ndn-cpp/c/util/crypto.h"
 
 namespace ndn {
 
diff --git a/tests/test-encode-decode-benchmark.cpp b/tests/test-encode-decode-benchmark.cpp
index ad2c40a..f68502d 100644
--- a/tests/test-encode-decode-benchmark.cpp
+++ b/tests/test-encode-decode-benchmark.cpp
@@ -20,7 +20,7 @@
 #include "../src/c/encoding/binary-xml-decoder.h"
 #include "../src/c/data.h"
 #include "../src/c/encoding/binary-xml-data.h"
-#include "../src/c/util/crypto.h"
+#include <ndn-cpp/c/util/crypto.h>
 
 using namespace std;
 using namespace ndn;