3 * E-mail : pck@netcom.com
5 * Description: C implementation of the Blowfish algorithm.
11 #include "stg/os_int.h"
13 #define MAXKEYBYTES 56 /* 448 bits */
16 #include <cstddef> // size_t
19 #include <stddef.h> // size_t
27 void Blowfish_Init(BLOWFISH_CTX *ctx, unsigned char *key, int keyLen);
28 void Blowfish_Encrypt(const BLOWFISH_CTX *ctx, uint32_t *xl, uint32_t *xr);
29 void Blowfish_Decrypt(const BLOWFISH_CTX *ctx, uint32_t *xl, uint32_t *xr);
31 void EnDecodeInit(const char * key, size_t length, BLOWFISH_CTX *ctx);
32 void DecodeString(char * d, const char * s, const BLOWFISH_CTX *ctx);
33 void EncodeString(char * d, const char * s, const BLOWFISH_CTX *ctx);
35 void DecodeFullString(void * d, const void * s, size_t length, const BLOWFISH_CTX &ctx);
36 void EncodeFullString(void * d, const void * s, size_t length, const BLOWFISH_CTX &ctx);