| 1 | // |
| 2 | // ECTest.h |
| 3 | // |
| 4 | // |
| 5 | // Definition of the ECTest class. |
| 6 | // |
| 7 | // Copyright (c) 2008, Applied Informatics Software Engineering GmbH. |
| 8 | // and Contributors. |
| 9 | // |
| 10 | // SPDX-License-Identifier: BSL-1.0 |
| 11 | // |
| 12 | |
| 13 | |
| 14 | #ifndef ECTest_INCLUDED |
| 15 | #define ECTest_INCLUDED |
| 16 | |
| 17 | |
| 18 | #include "Poco/Crypto/Crypto.h" |
| 19 | #include "Poco/CppUnit/TestCase.h" |
| 20 | |
| 21 | |
| 22 | class ECTest: public CppUnit::TestCase |
| 23 | { |
| 24 | public: |
| 25 | ECTest(const std::string& name); |
| 26 | ~ECTest(); |
| 27 | |
| 28 | void testCurveNIDName(); |
| 29 | void testECNewKeys(); |
| 30 | void testECNewKeysNoPassphrase(); |
| 31 | void testECDSASignSha256(); |
| 32 | void testECDSASignManipulated(); |
| 33 | |
| 34 | void setUp(); |
| 35 | void tearDown(); |
| 36 | |
| 37 | static CppUnit::Test* suite(); |
| 38 | |
| 39 | private: |
| 40 | }; |
| 41 | |
| 42 | |
| 43 | #endif // ECTest_INCLUDED |
| 44 | |