diff options
author | Jack Lloyd <[email protected]> | 2018-06-14 11:59:15 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-06-14 11:59:15 -0400 |
commit | 6dce31a9c6ea81e594e9239290ccb1c427ee5e29 (patch) | |
tree | 8538691250c338d22e8d6cfd43870344a10c6711 /src/tests/test_tls.cpp | |
parent | 071d6a9560365fd13dd68af66e84e80b3d7d7e37 (diff) |
Add 192-bit Suite B policy
Since 128-bit policy is actually not even allowed since 2015.
Diffstat (limited to 'src/tests/test_tls.cpp')
-rw-r--r-- | src/tests/test_tls.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/test_tls.cpp b/src/tests/test_tls.cpp index a64a3fa48..b43a39066 100644 --- a/src/tests/test_tls.cpp +++ b/src/tests/test_tls.cpp @@ -276,7 +276,7 @@ class Test_TLS_Policy_Text : public Test { Test::Result result("TLS Policy"); - const std::vector<std::string> policies = { "default", "suiteb", "strict", "datagram", "bsi" }; + const std::vector<std::string> policies = { "default", "suiteb_128", "suiteb_192", "strict", "datagram", "bsi" }; for(std::string policy : policies) { @@ -311,10 +311,14 @@ class Test_TLS_Policy_Text : public Test { policy.reset(new Botan::TLS::Policy); } - else if(policy_str == "suiteb") + else if(policy_str == "suiteb_128") { policy.reset(new Botan::TLS::NSA_Suite_B_128); } + else if(policy_str == "suiteb_192") + { + policy.reset(new Botan::TLS::NSA_Suite_B_192); + } else if(policy_str == "bsi") { policy.reset(new Botan::TLS::BSI_TR_02102_2); |