]> git.stg.codes - stg.git/blobdiff - stglibs/crypto.lib/blowfish.h
crypto.lib is now a plain C library
[stg.git] / stglibs / crypto.lib / blowfish.h
index 45d92110810f91a1ce229bcb8601ef2f373026cf..20f2fff76f951463ac7faefc740401f14fcbef78 100644 (file)
 
 #define MAXKEYBYTES 56          /* 448 bits */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct {
   uint32_t P[16 + 2];
   uint32_t S[4][256];
@@ -25,5 +29,9 @@ void EnDecodeInit(const char * key, int passwdLen, BLOWFISH_CTX *ctx);
 void DecodeString(char * d, const char * s, BLOWFISH_CTX *ctx);
 void EncodeString(char * d, const char * s, BLOWFISH_CTX *ctx);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif