From 50ca531fd57d964d9eb3005e59273c6d26c4f277 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 15 Jun 2010 17:32:46 +0200 Subject: corrected decryption --- cryptodev_cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit