emile: actually this set of function are neat enough to be a public API.

This commit is contained in:
Cedric BAIL 2015-03-17 08:50:38 +01:00
parent 8f3ec959b9
commit d6a2f0cad5
1 changed files with 16 additions and 16 deletions

View File

@ -1,6 +1,22 @@
#ifndef EMILE_CIPHER_H_
#define EMILE_CIPHER_H_
typedef enum
{
EMILE_AES256_CBC
} Emile_Cipher_Algorithm;
EAPI Eina_Bool emile_cipher_init(void);
EAPI const char *emile_cipher_module_get(void);
EAPI Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo,
const Eina_Binbuf *in,
const char *key, unsigned int length);
EAPI Eina_Binbuf *emile_binbuf_decipher(Emile_Cipher_Algorithm algo,
const Eina_Binbuf *in,
const char *key, unsigned int length);
#ifdef EFL_BETA_API_SUPPORT
typedef struct _Emile_SSL Emile_SSL;
@ -19,22 +35,6 @@ typedef enum
EMILE_WANT_WRITE = 3
} Emile_Want_Type;
typedef enum
{
EMILE_AES256_CBC
} Emile_Cipher_Algorithm;
EAPI Eina_Bool emile_cipher_init(void);
EAPI const char *emile_cipher_module_get(void);
EAPI Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo,
const Eina_Binbuf *in,
const char *key, unsigned int length);
EAPI Eina_Binbuf *emile_binbuf_decipher(Emile_Cipher_Algorithm algo,
const Eina_Binbuf *in,
const char *key, unsigned int length);
EAPI Eina_Bool emile_binbuf_sha1(const char *key,
unsigned int key_len,
const Eina_Binbuf *data,