1//
2// CryptoTest.h
3//
4// Definition of the CryptoTest class.
5//
6// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
7// and Contributors.
8//
9// SPDX-License-Identifier: BSL-1.0
10//
11
12
13#ifndef CryptoTest_INCLUDED
14#define CryptoTest_INCLUDED
15
16
17#include "Poco/Crypto/Crypto.h"
18#include "Poco/CppUnit/TestCase.h"
19
20
21class CryptoTest: public CppUnit::TestCase
22{
23public:
24 enum
25 {
26 MAX_DATA_SIZE = 10000
27 };
28
29 CryptoTest(const std::string& name);
30 ~CryptoTest();
31
32 void testEncryptDecrypt();
33 void testEncryptDecryptWithSalt();
34 void testEncryptDecryptWithSaltSha1();
35 void testEncryptDecryptDESECB();
36 void testEncryptDecryptGCM();
37 void testStreams();
38 void testPassword();
39 void testPasswordSha1();
40 void testEncryptInterop();
41 void testDecryptInterop();
42 void testCertificate();
43
44 void setUp();
45 void tearDown();
46
47 static CppUnit::Test* suite();
48
49private:
50};
51
52
53#endif // CryptoTest_INCLUDED
54