X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e9cb0683c0b33d8458c1d9b2558bbeb5d101e680..4243cf76394d6e657a1a8b67645d3d655efd1b07:/stglibs/crypto.lib/include/stg/blowfish.h?ds=sidebyside diff --git a/stglibs/crypto.lib/include/stg/blowfish.h b/stglibs/crypto.lib/include/stg/blowfish.h index c9983340..613da994 100644 --- a/stglibs/crypto.lib/include/stg/blowfish.h +++ b/stglibs/crypto.lib/include/stg/blowfish.h @@ -25,12 +25,15 @@ typedef struct { } 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 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, BLOWFISH_CTX *ctx); -void EncodeString(char * d, const char * s, 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 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); #ifdef __cplusplus }