From cb78eab8e5b6f01d91fb97b5afb2b374649885e0 Mon Sep 17 00:00:00 2001 From: Alexander Nutz Date: Fri, 5 Sep 2025 18:16:27 +0200 Subject: [PATCH] add extern C to chacha20 --- chacha20.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chacha20.h b/chacha20.h index 42853ad..83e3012 100644 --- a/chacha20.h +++ b/chacha20.h @@ -86,6 +86,10 @@ #ifndef SLOWCRYPT_CHACHA20_H #define SLOWCRYPT_CHACHA20_H +#ifdef __cplusplus +extern "C" { +#endif + #ifndef SLOWCRYPT_CHACHA20_UINT32 #include #define SLOWCRYPT_CHACHA20_UINT32 uint32_t @@ -286,4 +290,8 @@ SLOWCRYPT_CHACHA20_FUNC void slowcrypt_chacha20_block( #endif +#ifdef __cplusplus +} +#endif + #endif