From 16b292815287107a65effd92f0fd0da283ad4aa9 Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 3 Jul 2004 01:19:39 +0000 Subject: [PATCH] fix bug in CFB mode test --- trunk/c5/dlltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/c5/dlltest.cpp b/trunk/c5/dlltest.cpp index ed9337a0..149d27d9 100644 --- a/trunk/c5/dlltest.cpp +++ b/trunk/c5/dlltest.cpp @@ -62,7 +62,7 @@ void FIPS140_SampleApplication() CFB_FIPS_Mode::Encryption encryption_DES_EDE3_CFB; encryption_DES_EDE3_CFB.SetKeyWithIV(key, sizeof(key), iv); - encryption_DES_EDE3_CFB.ProcessString(ciphertext, plaintext, 23); + encryption_DES_EDE3_CFB.ProcessString(ciphertext, plaintext, 24); CFB_FIPS_Mode::Decryption decryption_DES_EDE3_CFB; decryption_DES_EDE3_CFB.SetKeyWithIV(key, sizeof(key), iv);