diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-15 17:32:46 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-17 20:49:04 +0200 |
commit | 50ca531fd57d964d9eb3005e59273c6d26c4f277 (patch) | |
tree | 56cf9c3b9f58d5a6932d4de8621366a2f6bcae5e | |
parent | 6b2093b9efe64850ccbbd9c6b43ce3144c73d256 (diff) | |
download | cryptodev-linux-50ca531fd57d964d9eb3005e59273c6d26c4f277.tar.gz cryptodev-linux-50ca531fd57d964d9eb3005e59273c6d26c4f277.tar.xz cryptodev-linux-50ca531fd57d964d9eb3005e59273c6d26c4f277.zip |
corrected decryption
-rw-r--r-- | cryptodev_cipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptodev_cipher.c b/cryptodev_cipher.c index 58fcba2..bbd79d9 100644 --- a/cryptodev_cipher.c +++ b/cryptodev_cipher.c @@ -179,7 +179,7 @@ struct scatterlist sg, sg2; sg_init_one(&sg, ciphertext, ciphertext_size); sg_init_one(&sg2, plaintext, plaintext_size); - return cryptodev_cipher_encrypt( cdata, &sg, &sg2, ciphertext_size); + return cryptodev_cipher_decrypt( cdata, &sg, &sg2, ciphertext_size); } |