summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptodev_cipher.c2
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);
}