mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-08 19:04:06 +01:00
69a7f53b02
This changes the format produced by OpenSSL from being separated by / to ,
55 lines
927 B
C++
55 lines
927 B
C++
//
|
|
// CryptoTest.h
|
|
//
|
|
// Definition of the CryptoTest class.
|
|
//
|
|
// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef CryptoTest_INCLUDED
|
|
#define CryptoTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Crypto/Crypto.h"
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
class CryptoTest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
enum
|
|
{
|
|
MAX_DATA_SIZE = 10000
|
|
};
|
|
|
|
CryptoTest(const std::string& name);
|
|
~CryptoTest();
|
|
|
|
void testEncryptDecrypt();
|
|
void testEncryptDecryptWithSalt();
|
|
void testEncryptDecryptWithSaltSha1();
|
|
void testEncryptDecryptDESECB();
|
|
void testEncryptDecryptGCM();
|
|
void testStreams();
|
|
void testPassword();
|
|
void testPasswordSha1();
|
|
void testEncryptInterop();
|
|
void testDecryptInterop();
|
|
void testCertificate();
|
|
void testCertificateUTF8();
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
private:
|
|
};
|
|
|
|
|
|
#endif // CryptoTest_INCLUDED
|