Move dependencies to the top level.

This commit is contained in:
jakcron
2022-04-16 18:27:14 +08:00
parent b67980d3d2
commit 5d62e839e7
844 changed files with 74 additions and 114431 deletions
@@ -1,31 +0,0 @@
#pragma once
#include <tc/types.h>
#include <tc/ByteData.h>
class RsaPkcs1Util
{
public:
struct TestVector
{
std::string test_name;
tc::ByteData key_modulus;
tc::ByteData key_private_exponent;
tc::ByteData message_digest;
tc::ByteData signature;
};
enum HashAlgo
{
MD4,
MD5,
SHA1,
SHA224,
SHA256,
SHA384,
SHA512
};
/// Implementation of https://gist.github.com/jakcron/1c00ed37089743e38df46da2d9ccf6a0
static void generateRsaPkcs1TestVectors_Custom(std::vector<RsaPkcs1Util::TestVector>& test_list, size_t key_size, RsaPkcs1Util::HashAlgo hash_algo);
};