summaryrefslogtreecommitdiff
path: root/lib/crypto-selftests.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto-selftests.c')
-rw-r--r--lib/crypto-selftests.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto-selftests.c b/lib/crypto-selftests.c
index 4f42ae80aa..fd45478bb9 100644
--- a/lib/crypto-selftests.c
+++ b/lib/crypto-selftests.c
@@ -387,7 +387,8 @@ static int test_cipher(gnutls_cipher_algorithm_t cipher,
ret =
gnutls_cipher_decrypt2(hd,
- vectors[i].ciphertext, 16, tmp,
+ vectors[i].ciphertext,
+ vectors[i].plaintext_size, tmp,
sizeof(tmp));
if (ret < 0) {
_gnutls_debug_log