emile: actually this set of function are neat enough to be a public API.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 17 Mar 2015 07:50:38 +0000 (08:50 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 17 Mar 2015 08:58:20 +0000 (09:58 +0100)
src/lib/emile/emile_cipher.h

index ecf0952..435772f 100644 (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,