diff options
Diffstat (limited to 'src/extra_tests/timing/timing-tests/TimingTest.h')
-rw-r--r-- | src/extra_tests/timing/timing-tests/TimingTest.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/extra_tests/timing/timing-tests/TimingTest.h b/src/extra_tests/timing/timing-tests/TimingTest.h index a61e21519..a0295c6fd 100644 --- a/src/extra_tests/timing/timing-tests/TimingTest.h +++ b/src/extra_tests/timing/timing-tests/TimingTest.h @@ -19,6 +19,8 @@ #include <botan/internal/tls_cbc.h> #include <botan/tls_exceptn.h> #include <botan/cipher_mode.h> +#include <botan/ecdsa.h> +#include <botan/reducer.h> using namespace Botan; @@ -97,6 +99,23 @@ class Lucky13Test : public TimingTest Lucky13Test(std::vector<std::string> &inputs, std::string result_file, const std::string& mac_name, size_t mac_keylen); }; + +class ECDSATest : public TimingTest + { + private: + const ECDSA_PrivateKey m_privkey; + const BigInt m_order; + Blinded_Point_Multiply m_base_point; + const BigInt m_x; + const Modular_Reducer m_mod_order; + + protected: + std::vector<byte> prepare_input(std::string input) override; + ticks measure_critical_function(std::vector<byte> input) override; + + public: + ECDSATest(std::vector<std::string> &inputs, std::string result_folder, std::string ecgroup); + }; #endif /* TIMINGTEST_H */
\ No newline at end of file |