diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2017-10-07 13:01:52 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2017-10-07 13:01:52 +0200 |
commit | b7389bb3a98c077bcf39cafe2f9b66db15bd0bda (patch) | |
tree | 7758dcc461cf386ef30446d2f2b8eacf2f1e4183 /src/util/crypto_abe.c | |
parent | f12a22a2a9b6d71f0fc9d24940e77d84d6568da0 (diff) | |
download | gnunet-b7389bb3a98c077bcf39cafe2f9b66db15bd0bda.tar.gz gnunet-b7389bb3a98c077bcf39cafe2f9b66db15bd0bda.zip |
-mem fixes, revocation finish
Diffstat (limited to 'src/util/crypto_abe.c')
-rw-r--r-- | src/util/crypto_abe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/crypto_abe.c b/src/util/crypto_abe.c index 899965159..f52cd5213 100644 --- a/src/util/crypto_abe.c +++ b/src/util/crypto_abe.c | |||
@@ -108,7 +108,7 @@ aes_128_cbc_encrypt( char* pt, | |||
108 | GNUNET_assert (0 == gcry_cipher_encrypt (handle, *ct, buf_size, buf, buf_size)); | 108 | GNUNET_assert (0 == gcry_cipher_encrypt (handle, *ct, buf_size, buf, buf_size)); |
109 | gcry_cipher_close (handle); | 109 | gcry_cipher_close (handle); |
110 | //AES_cbc_encrypt(pt->data, ct->data, pt->len, &key, iv, AES_ENCRYPT); | 110 | //AES_cbc_encrypt(pt->data, ct->data, pt->len, &key, iv, AES_ENCRYPT); |
111 | 111 | GNUNET_free (buf); | |
112 | return buf_size; | 112 | return buf_size; |
113 | } | 113 | } |
114 | 114 | ||
@@ -300,6 +300,7 @@ GNUNET_CRYPTO_cpabe_decrypt (const void *block, | |||
300 | } | 300 | } |
301 | gabe_cph_free(cph); | 301 | gabe_cph_free(cph); |
302 | plt_len = aes_128_cbc_decrypt(aes_buf, aes_buf_size, m, (char**)result); | 302 | plt_len = aes_128_cbc_decrypt(aes_buf, aes_buf_size, m, (char**)result); |
303 | GNUNET_free (aes_buf); | ||
303 | //freeing is buggy in gabe | 304 | //freeing is buggy in gabe |
304 | //gabe_prv_free (prv); | 305 | //gabe_prv_free (prv); |
305 | //gabe_pub_free (pub); | 306 | //gabe_pub_free (pub); |