Files
Project_CTR/ctrtool/deps/libtoolchain/test/crypto_Aes128CtrEncryptedStream_TestClass.h
T
2022-04-16 21:27:49 +08:00

29 lines
686 B
C++

#pragma once
#include "ITestClass.h"
#include <tc/crypto.h>
#include <tc/ArgumentOutOfRangeException.h>
#include <tc/NotImplementedException.h>
class crypto_Aes128CtrEncryptedStream_TestClass : public ITestClass
{
public:
void runAllTests();
private:
void test_CreateEmptyStream_DefaultConstructor();
void test_CreateValidStream_CreateConstructor();
void test_RunTestCases();
struct TestCase
{
std::string test_name;
tc::ByteData key;
tc::ByteData counter;
tc::ByteData ciphertext;
int64_t read_offset;
size_t read_size;
tc::ByteData read_plaintext;
};
void util_Setup_TestCases(std::vector<crypto_Aes128CtrEncryptedStream_TestClass::TestCase>& test_cases);
};