10Duke Scale C++ Client
Loading...
Searching...
No Matches
TestKeys.h
1#ifndef TENDUKE_TEST_DATA_TESTKEYS_H
2#define TENDUKE_TEST_DATA_TESTKEYS_H
3
4#include "utl/BinaryData.h"
5#include <memory>
6
7namespace tenduke { namespace test { namespace data {
8
9struct TestKey
10{
11 const char * const publicKeyPem;
12 const std::shared_ptr<::tenduke::utl::BinaryData> publicKeyExponent;
13 const std::shared_ptr<::tenduke::utl::BinaryData> modulus;
14 const std::shared_ptr<::tenduke::utl::BinaryData> expectedSHA256Signature;
15};
16
17extern const char * const RSA_1024_BIT_PRIVATE_KEY_PEM;
18extern const char * const RSA_1024_BIT_PUBLIC_KEY_PEM;
19extern const unsigned char RSA_1024_BIT_PUBLIC_KEY_EXPONENT[];
20extern const std::size_t RSA_1024_BIT_PUBLIC_KEY_EXPONENT_LEN;
21extern const unsigned char RSA_1024_BIT_PUBLIC_KEY_MODULUS[];
22extern const std::size_t RSA_1024_BIT_PUBLIC_KEY_MODULUS_LEN;
23
24extern const char * const RSA_4096_BIT_PUBLIC_KEY_PEM;
25
26extern const char * const MESSAGE;
27
28extern const unsigned char EXPECTED_RS256_SIGNATURE_FROM_1024_BIT_RSA_KEY[];
29extern const std::size_t EXPECTED_RS256_SIGNATURE_FROM_1024_BIT_RSA_KEY_LEN;
30extern const unsigned char EXPECTED_RS256_SIGNATURE_FROM_4096_BIT_RSA_KEY[];
31extern const std::size_t EXPECTED_RS256_SIGNATURE_FROM_4096_BIT_RSA_KEY_LEN;
32
33
34}}}
35
36#endif //TENDUKE_TEST_DATA_TESTKEYS_H
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16
Definition TestKeys.h:10