summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-01-30 13:50:01 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-01-30 13:50:01 +0000
commitfa452d770d909c659b3e1802a997dcc359d2aa90 (patch)
treee539745eb5ef7ba174283cf06c7d408792fd1311
parentcda565a38ea3dce2d1089901d1506731c14c7bc5 (diff)
* eet/src/lib/eet_cipher.c: Fix a corrupted pointer use.
SVN revision: 38856
Diffstat (limited to '')
-rw-r--r--legacy/eet/src/lib/eet_cipher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/eet/src/lib/eet_cipher.c b/legacy/eet/src/lib/eet_cipher.c
index 17921ab877..9e5fe6a126 100644
--- a/legacy/eet/src/lib/eet_cipher.c
+++ b/legacy/eet/src/lib/eet_cipher.c
@@ -668,7 +668,7 @@ eet_cipher(const void *data, unsigned int size, const char *key, unsigned int le
668 err = gcry_cipher_open(&cipher, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_CBC, 0); 668 err = gcry_cipher_open(&cipher, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_CBC, 0);
669 if (err) goto on_error; 669 if (err) goto on_error;
670 opened = 1; 670 opened = 1;
671 err = gcry_cipher_setiv(cipher, &iv, MAX_IV_LEN); 671 err = gcry_cipher_setiv(cipher, iv, MAX_IV_LEN);
672 if (err) goto on_error; 672 if (err) goto on_error;
673 err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN); 673 err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN);
674 if (err) goto on_error; 674 if (err) goto on_error;
@@ -772,7 +772,7 @@ eet_decipher(const void *data, unsigned int size, const char *key, unsigned int
772 /* Gcrypt create the corresponding cipher */ 772 /* Gcrypt create the corresponding cipher */
773 err = gcry_cipher_open(&cipher, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_CBC, 0); 773 err = gcry_cipher_open(&cipher, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_CBC, 0);
774 if (err) return EET_ERROR_DECRYPT_FAILED; 774 if (err) return EET_ERROR_DECRYPT_FAILED;
775 err = gcry_cipher_setiv(cipher, &iv, MAX_IV_LEN); 775 err = gcry_cipher_setiv(cipher, iv, MAX_IV_LEN);
776 if (err) goto on_error; 776 if (err) goto on_error;
777 err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN); 777 err = gcry_cipher_setkey(cipher, ik, MAX_KEY_LEN);
778 if (err) goto on_error; 778 if (err) goto on_error;