aboutsummaryrefslogtreecommitdiff
path: root/sha2.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-07-17 01:17:44 -0400
committerPaul Duncan <pabs@pablotron.org>2019-07-17 01:17:44 -0400
commit1bd32be2c3c1e400f391a4c9fbf5f0033eacd8a0 (patch)
tree4477e1101b1cd1e1d08dd5b1153117d61eab258d /sha2.h
parent9b9d4f7a7d22f1a0c2b1d53a1f7cd6bc67a34010 (diff)
downloadsha2-1bd32be2c3c1e400f391a4c9fbf5f0033eacd8a0.tar.bz2
sha2-1bd32be2c3c1e400f391a4c9fbf5f0033eacd8a0.zip
fix comments, add header guard
Diffstat (limited to 'sha2.h')
-rw-r--r--sha2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sha2.h b/sha2.h
index 704fb2f..367b736 100644
--- a/sha2.h
+++ b/sha2.h
@@ -1,6 +1,10 @@
#ifndef SHA2_H_
#define SHA2_H_
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include <stdint.h> // uint32_t, uint8_t
#include <stdlib.h> // size_t
@@ -59,4 +63,8 @@ void sha384_push(sha384_t * const, const uint8_t *, size_t);
void sha384_fini(sha384_t * const, uint8_t * const);
void sha384(const uint8_t * const, const size_t, uint8_t * const);
+#ifdef __cplusplus
+};
+#endif /* __cplusplus */
+
#endif /* SHA2_H_ */