fix bug in CFB mode test

import/raw
weidai 2004-07-03 01:19:39 +00:00
parent 5009fd72a9
commit 16b2928152
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void FIPS140_SampleApplication()
CFB_FIPS_Mode<DES_EDE3>::Encryption encryption_DES_EDE3_CFB; CFB_FIPS_Mode<DES_EDE3>::Encryption encryption_DES_EDE3_CFB;
encryption_DES_EDE3_CFB.SetKeyWithIV(key, sizeof(key), iv); 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<DES_EDE3>::Decryption decryption_DES_EDE3_CFB; CFB_FIPS_Mode<DES_EDE3>::Decryption decryption_DES_EDE3_CFB;
decryption_DES_EDE3_CFB.SetKeyWithIV(key, sizeof(key), iv); decryption_DES_EDE3_CFB.SetKeyWithIV(key, sizeof(key), iv);