diff options
Diffstat (limited to 'sha2.h')
-rw-r--r-- | sha2.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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_ */ |