mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-09 19:17:38 +01:00
46 lines
718 B
C++
46 lines
718 B
C++
//
|
|
// RSATest.h
|
|
//
|
|
// Definition of the RSATest class.
|
|
//
|
|
// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef RSATest_INCLUDED
|
|
#define RSATest_INCLUDED
|
|
|
|
|
|
#include "Poco/Crypto/Crypto.h"
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
class RSATest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
RSATest(const std::string& name);
|
|
~RSATest();
|
|
|
|
void testNewKeys();
|
|
void testNewKeysNoPassphrase();
|
|
void testSign();
|
|
void testSignSha256();
|
|
void testSignManipulated();
|
|
void testRSACipher();
|
|
void testRSACipherLarge();
|
|
void testCertificate();
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
private:
|
|
};
|
|
|
|
|
|
#endif // RSATest_INCLUDED
|