summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.cpp b/test.cpp
index dc430f2..77719fe 100644
--- a/test.cpp
+++ b/test.cpp
@@ -357,11 +357,11 @@ void FIPS140_SampleApplication(const char *moduleFilename, const char *edcFilena
byte ciphertext[24];
byte decrypted[24];
- CFB_Mode<DES>::Encryption encryption_DES_CBC;
+ CBC_Mode<DES>::Encryption encryption_DES_CBC;
encryption_DES_CBC.SetKeyWithIV(key, 8, iv);
encryption_DES_CBC.ProcessString(ciphertext, plaintext, 24);
- CFB_Mode<DES>::Decryption decryption_DES_CBC;
+ CBC_Mode<DES>::Decryption decryption_DES_CBC;
decryption_DES_CBC.SetKeyWithIV(key, 8, iv);
decryption_DES_CBC.ProcessString(decrypted, ciphertext, 24);