summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-03-17 08:50:38 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 09:58:20 +0100
commitd6a2f0cad5c71dc2e34fab916a8f0d4bc46835b8 (patch)
treecca88bb162b64903e9c41188cc5a0ec0e6718f95 /src/lib/emile
parent8f3ec959b9d22d93f6ec38fc47e2339089598f8d (diff)
emile: actually this set of function are neat enough to be a public API.
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_cipher.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/emile/emile_cipher.h b/src/lib/emile/emile_cipher.h
index ecf0952454..435772f2ad 100644
--- a/src/lib/emile/emile_cipher.h
+++ b/src/lib/emile/emile_cipher.h
@@ -1,6 +1,22 @@
1#ifndef EMILE_CIPHER_H_ 1#ifndef EMILE_CIPHER_H_
2#define EMILE_CIPHER_H_ 2#define EMILE_CIPHER_H_
3 3
4typedef enum
5{
6 EMILE_AES256_CBC
7} Emile_Cipher_Algorithm;
8
9EAPI Eina_Bool emile_cipher_init(void);
10EAPI const char *emile_cipher_module_get(void);
11
12EAPI Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo,
13 const Eina_Binbuf *in,
14 const char *key, unsigned int length);
15
16EAPI Eina_Binbuf *emile_binbuf_decipher(Emile_Cipher_Algorithm algo,
17 const Eina_Binbuf *in,
18 const char *key, unsigned int length);
19
4#ifdef EFL_BETA_API_SUPPORT 20#ifdef EFL_BETA_API_SUPPORT
5 21
6typedef struct _Emile_SSL Emile_SSL; 22typedef struct _Emile_SSL Emile_SSL;
@@ -19,22 +35,6 @@ typedef enum
19 EMILE_WANT_WRITE = 3 35 EMILE_WANT_WRITE = 3
20} Emile_Want_Type; 36} Emile_Want_Type;
21 37
22typedef enum
23{
24 EMILE_AES256_CBC
25} Emile_Cipher_Algorithm;
26
27EAPI Eina_Bool emile_cipher_init(void);
28EAPI const char *emile_cipher_module_get(void);
29
30EAPI Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo,
31 const Eina_Binbuf *in,
32 const char *key, unsigned int length);
33
34EAPI Eina_Binbuf *emile_binbuf_decipher(Emile_Cipher_Algorithm algo,
35 const Eina_Binbuf *in,
36 const char *key, unsigned int length);
37
38EAPI Eina_Bool emile_binbuf_sha1(const char *key, 38EAPI Eina_Bool emile_binbuf_sha1(const char *key,
39 unsigned int key_len, 39 unsigned int key_len,
40 const Eina_Binbuf *data, 40 const Eina_Binbuf *data,