diff options
author | Michał Cichoń <michcic@gmail.com> | 2015-08-25 06:45:41 +0200 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2015-08-25 06:45:41 +0200 |
commit | a3bae55d41f5159df3a0125f02a8fa322e81bbe3 (patch) | |
tree | 06163f5e15a4902428ece78fb278e3f5429f697b /src/libpiano/crypt.h | |
parent | 34b6068d229efcb934fa40b5f4d47a46cedae552 (diff) | |
download | pianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.tar.gz pianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.tar.bz2 pianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.zip |
libpiano: Abstract out blowfish cipher to PianoCipher_t so different implementations than gcrypt can be used.
Diffstat (limited to 'src/libpiano/crypt.h')
-rw-r--r-- | src/libpiano/crypt.h | 13 |
1 files changed, 7 insertions, 6 deletions
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 <gcrypt.h> +#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 */ |