summaryrefslogtreecommitdiff
path: root/lib/crypto-selftests.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-13 09:52:15 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-13 09:52:15 +0100
commitbc27b28a09c16ddcc6521630619964eab1865b65 (patch)
tree80e62b426409e623eacedf056c5d7f93532f9b19 /lib/crypto-selftests.c
parent403791d7c93ea2fba30c947a4072d80d4f5f3524 (diff)
downloadgnutls-bc27b28a09c16ddcc6521630619964eab1865b65.tar.gz
corrected self test for 3DES
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