add extern C to chacha20

This commit is contained in:
2025-09-05 18:16:27 +02:00
parent 203699b7ed
commit cb78eab8e5

View File

@@ -86,6 +86,10 @@
#ifndef SLOWCRYPT_CHACHA20_H #ifndef SLOWCRYPT_CHACHA20_H
#define SLOWCRYPT_CHACHA20_H #define SLOWCRYPT_CHACHA20_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SLOWCRYPT_CHACHA20_UINT32 #ifndef SLOWCRYPT_CHACHA20_UINT32
#include <stdint.h> #include <stdint.h>
#define SLOWCRYPT_CHACHA20_UINT32 uint32_t #define SLOWCRYPT_CHACHA20_UINT32 uint32_t
@@ -286,4 +290,8 @@ SLOWCRYPT_CHACHA20_FUNC void slowcrypt_chacha20_block(
#endif #endif
#ifdef __cplusplus
}
#endif
#endif #endif