mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-06 08:49:04 +00:00
Put everything back.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
#include <tc/types.h>
|
||||
#include <tc/ByteData.h>
|
||||
|
||||
class RsaPssUtil
|
||||
{
|
||||
public:
|
||||
struct TestVector
|
||||
{
|
||||
std::string test_name;
|
||||
|
||||
tc::ByteData key_modulus;
|
||||
tc::ByteData key_private_exponent;
|
||||
tc::ByteData message_digest;
|
||||
tc::ByteData salt;
|
||||
tc::ByteData signature;
|
||||
};
|
||||
|
||||
enum HashAlgo
|
||||
{
|
||||
MD4,
|
||||
MD5,
|
||||
SHA1,
|
||||
SHA224,
|
||||
SHA256,
|
||||
SHA384,
|
||||
SHA512
|
||||
};
|
||||
|
||||
/// Implementation of https://gist.github.com/jakcron/1c00ed37089743e38df46da2d9ccf6a0
|
||||
static void generateRsaPssTestVectors_Custom(std::vector<RsaPssUtil::TestVector>& test_list, size_t key_size, RsaPssUtil::HashAlgo hash_algo);
|
||||
};
|
||||
Reference in New Issue
Block a user