aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_modes.cpp
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-07-07 16:39:13 +0200
committerRenĂ© Korthaus <[email protected]>2016-07-11 11:43:37 +0200
commit0d503ef93d34571039115f05a24a849a05226b5c (patch)
treea904734a2a79347d81a117ba738dfb206f60d923 /src/tests/test_modes.cpp
parent2b3f4270371d376e1500b68f4955548b659d2011 (diff)
Add test vectors for AES-CBC-CS3 aka AES/CBC/CTS from RFC 3962
Previously, CBC-CS3 only had tests with DES, but if DES is not enabled in the module policy, then CBC-CS3 is not tested at all.
Diffstat (limited to 'src/tests/test_modes.cpp')
-rw-r--r--src/tests/test_modes.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/test_modes.cpp b/src/tests/test_modes.cpp
index 7b6344975..66f537346 100644
--- a/src/tests/test_modes.cpp
+++ b/src/tests/test_modes.cpp
@@ -39,6 +39,8 @@ class Cipher_Mode_Tests : public Text_Based_Test
return result;
}
+ result.test_eq("name", enc->name(), algo);
+
result.test_eq("mode not authenticated", enc->authenticated(), false);
enc->set_key(key);
@@ -57,6 +59,9 @@ class Cipher_Mode_Tests : public Text_Based_Test
dec->finish(buf);
result.test_eq("decrypt", buf, input);
+ enc->clear();
+ dec->clear();
+
return result;
}
};