]> git.stg.codes - stg.git/blobdiff - stglibs/crypto.lib/include/stg/blowfish.h
Merge branch 'stg-2.409-radius'
[stg.git] / stglibs / crypto.lib / include / stg / blowfish.h
index 613da99457295f04a84804e493058d2bf9ca2225..80e39cd3458ec53c1fea6587d38d6b33d56e2ed4 100644 (file)
@@ -24,16 +24,16 @@ typedef struct {
   uint32_t S[4][256];
 } BLOWFISH_CTX;
 
-void Blowfish_Init(BLOWFISH_CTX *ctx, unsigned char *key, int keyLen);
-void Blowfish_Encrypt(const BLOWFISH_CTX *ctx, uint32_t *xl, uint32_t *xr);
-void Blowfish_Decrypt(const BLOWFISH_CTX *ctx, uint32_t *xl, uint32_t *xr);
+void Blowfish_Init(BLOWFISH_CTX * ctx, unsigned char * key, int keyLen);
+void Blowfish_Encrypt(const BLOWFISH_CTX * ctx, uint32_t * xl, uint32_t * xr);
+void Blowfish_Decrypt(const 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, const BLOWFISH_CTX *ctx);
-void EncodeString(char * d, const char * s, const BLOWFISH_CTX *ctx);
+void InitContext(const char * key, size_t length, BLOWFISH_CTX * ctx);
+void DecryptBlock(void * d, const void * s, const BLOWFISH_CTX * ctx);
+void EncryptBlock(void * d, const void * s, const BLOWFISH_CTX * ctx);
 
-void DecodeFullString(void * d, const void * s, size_t length, const BLOWFISH_CTX &ctx);
-void EncodeFullString(void * d, const void * s, size_t length, const BLOWFISH_CTX &ctx);
+void DecryptString(void * d, const void * s, size_t length, const BLOWFISH_CTX * ctx);
+void EncryptString(void * d, const void * s, size_t length, const BLOWFISH_CTX * ctx);
 
 #ifdef __cplusplus
 }