X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ae21e8d6ad32d0bf3517127aef5cd8129b7507aa..46b0747592074017ff0ea4b33d4a7194235886e5:/stglibs/crypto.lib/include/stg/blowfish.h diff --git a/stglibs/crypto.lib/include/stg/blowfish.h b/stglibs/crypto.lib/include/stg/blowfish.h deleted file mode 100644 index c9983340..00000000 --- a/stglibs/crypto.lib/include/stg/blowfish.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Author : Paul Kocher - * E-mail : pck@netcom.com - * Date : 1997 - * Description: C implementation of the Blowfish algorithm. - */ - -#ifndef BLOWFISH_H -#define BLOWFISH_H - -#include "stg/os_int.h" - -#define MAXKEYBYTES 56 /* 448 bits */ - -#ifdef __cplusplus -#include // size_t -extern "C" { -#else -#include // size_t -#endif - -typedef struct { - uint32_t P[16 + 2]; - uint32_t S[4][256]; -} BLOWFISH_CTX; - -void Blowfish_Init(BLOWFISH_CTX *ctx, unsigned char *key, int keyLen); -void Blowfish_Encrypt(BLOWFISH_CTX *ctx, uint32_t *xl, uint32_t *xr); -void Blowfish_Decrypt(BLOWFISH_CTX *ctx, uint32_t *xl, uint32_t *xr); - -void EnDecodeInit(const char * key, size_t length, 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 -