diff options
author | Jack Lloyd <[email protected]> | 2018-05-29 14:48:15 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-05-29 14:48:15 -0400 |
commit | 48fb47c2aad3d39c51d971685b0be3f6a9292e15 (patch) | |
tree | faeca0d57adec9f76bc5fbe0f5f84383b79f787f /src/tests/test_dsa.cpp | |
parent | 5b60dae056a652c9eb0b480db8bfa020ead9d4e1 (diff) |
Make the tests VarMap an actual type instead of a hashmap typedef.
Diffstat (limited to 'src/tests/test_dsa.cpp')
-rw-r--r-- | src/tests/test_dsa.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/test_dsa.cpp b/src/tests/test_dsa.cpp index c0b2508c0..86a9714b8 100644 --- a/src/tests/test_dsa.cpp +++ b/src/tests/test_dsa.cpp @@ -38,10 +38,10 @@ class DSA_KAT_Tests final : public PK_Signature_Generation_Test std::unique_ptr<Botan::Private_Key> load_private_key(const VarMap& vars) override { - const Botan::BigInt p = get_req_bn(vars, "P"); - const Botan::BigInt q = get_req_bn(vars, "Q"); - const Botan::BigInt g = get_req_bn(vars, "G"); - const Botan::BigInt x = get_req_bn(vars, "X"); + const Botan::BigInt p = vars.get_req_bn("P"); + const Botan::BigInt q = vars.get_req_bn("Q"); + const Botan::BigInt g = vars.get_req_bn("G"); + const Botan::BigInt x = vars.get_req_bn("X"); const Botan::DL_Group grp(p, q, g); @@ -51,7 +51,7 @@ class DSA_KAT_Tests final : public PK_Signature_Generation_Test std::string default_padding(const VarMap& vars) const override { - return "EMSA1(" + get_req_str(vars, "Hash") + ")"; + return "EMSA1(" + vars.get_req_str("Hash") + ")"; } }; @@ -70,10 +70,10 @@ class DSA_Verification_Tests final : public PK_Signature_Verification_Test std::unique_ptr<Botan::Public_Key> load_public_key(const VarMap& vars) override { - const Botan::BigInt p = get_req_bn(vars, "P"); - const Botan::BigInt q = get_req_bn(vars, "Q"); - const Botan::BigInt g = get_req_bn(vars, "G"); - const Botan::BigInt y = get_req_bn(vars, "Y"); + const Botan::BigInt p = vars.get_req_bn("P"); + const Botan::BigInt q = vars.get_req_bn("Q"); + const Botan::BigInt g = vars.get_req_bn("G"); + const Botan::BigInt y = vars.get_req_bn("Y"); const Botan::DL_Group grp(p, q, g); |