From a3bae55d41f5159df3a0125f02a8fa322e81bbe3 Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Tue, 25 Aug 2015 06:45:41 +0200 Subject: libpiano: Abstract out blowfish cipher to PianoCipher_t so different implementations than gcrypt can be used. --- src/libpiano/crypt.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/libpiano/crypt.h') diff --git a/src/libpiano/crypt.h b/src/libpiano/crypt.h index fc7c205..890b8c1 100644 --- a/src/libpiano/crypt.h +++ b/src/libpiano/crypt.h @@ -24,13 +24,14 @@ THE SOFTWARE. #ifndef SRC_LIBPIANO_CRYPT_H_O832IVGK #define SRC_LIBPIANO_CRYPT_H_O832IVGK -#ifdef __FreeBSD__ -#define _GCRYPT_IN_LIBGCRYPT -#endif -#include +#include "piano.h" -char *PianoDecryptString (gcry_cipher_hd_t, const char * const, +PianoReturn_t PianoCryptInit (PianoCipher_t*, const char * const, + size_t const); +void PianoCryptDestroy (PianoCipher_t); + +char *PianoDecryptString (PianoCipher_t, const char * const, size_t * const); -char *PianoEncryptString (gcry_cipher_hd_t, const char *); +char *PianoEncryptString (PianoCipher_t, const char *); #endif /* SRC_LIBPIANO_CRYPT_H_O832IVGK */ -- cgit v1.2.3