aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eet
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-03-17 08:50:37 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 09:58:19 +0100
commit8f3ec959b9d22d93f6ec38fc47e2339089598f8d (patch)
tree7785b85b47ceafeadf24573cdce2c6407f62dcfe /src/lib/eet
parentemile: mark ssl layer as a beta API for now. (diff)
downloadefl-8f3ec959b9d22d93f6ec38fc47e2339089598f8d.tar.gz
emile: change the API to allow supporting other cipher in the future.
Diffstat (limited to 'src/lib/eet')
-rw-r--r--src/lib/eet/eet_cipher.c4
-rw-r--r--src/lib/eet/eet_lib.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/eet/eet_cipher.c b/src/lib/eet/eet_cipher.c
index e625a5e713..119c12e62d 100644
--- a/src/lib/eet/eet_cipher.c
+++ b/src/lib/eet/eet_cipher.c
@@ -883,7 +883,7 @@ eet_cipher(const void *data,
Eina_Binbuf *in;
in = eina_binbuf_manage_read_only_new_length(data, size);
- out = emile_binbuf_cipher(in, key, length);
+ out = emile_binbuf_cipher(EMILE_AES256_CBC, in, key, length);
if (result_length) *result_length = out ? eina_binbuf_length_get(out) : 0;
if (result) *result = out ? eina_binbuf_string_steal(out) : NULL;
@@ -904,7 +904,7 @@ eet_decipher(const void *data,
Eina_Binbuf *in;
in = eina_binbuf_manage_read_only_new_length(data, size);
- out = emile_binbuf_decipher(in, key, length);
+ out = emile_binbuf_decipher(EMILE_AES256_CBC, in, key, length);
if (result_length) *result_length = out ? eina_binbuf_length_get(out) : 0;
if (result) *result = out ? eina_binbuf_string_steal(out) : NULL;
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index 1ee4eb6b53..04c9a05223 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -1873,7 +1873,8 @@ eet_read_cipher(Eet_File *ef,
{
Eina_Binbuf *out;
- out = emile_binbuf_decipher(in, cipher_key, strlen(cipher_key));
+ out = emile_binbuf_decipher(EMILE_AES256_CBC, in,
+ cipher_key, strlen(cipher_key));
eina_binbuf_free(in);
if (!out) goto on_error;
@@ -2352,7 +2353,8 @@ eet_write_cipher(Eet_File *ef,
{
Eina_Binbuf *out;
- out = emile_binbuf_cipher(in, cipher_key, strlen(cipher_key));
+ out = emile_binbuf_cipher(EMILE_AES256_CBC, in,
+ cipher_key, strlen(cipher_key));
// Old behaviour was to not fail if the cipher where not built in
if (out)
{