mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 16:59:04 +00:00
34 lines
740 B
C++
34 lines
740 B
C++
#pragma once
|
|
#include "ITestClass.h"
|
|
|
|
#include <vector>
|
|
#include <tc/ByteData.h>
|
|
|
|
class crypto_HmacSha1Generator_TestClass : public ITestClass
|
|
{
|
|
public:
|
|
void runAllTests();
|
|
private:
|
|
void test_Constants();
|
|
void test_SingleUpdateCall();
|
|
void test_MultiUpdateCall();
|
|
void test_UtilFunc();
|
|
|
|
void test_NoInitNoUpdateDoMac();
|
|
void test_NoInitDoUpdateDoMac();
|
|
void test_DoInitNoUpdateDoMac();
|
|
void test_DoInitNoKeyDoUpdateDoMac();
|
|
void test_DoInitNoKeyNoUpdateDoMac();
|
|
|
|
void test_CallGetMacRepeatedly();
|
|
|
|
struct TestCase
|
|
{
|
|
std::string test_name;
|
|
tc::ByteData in_data;
|
|
tc::ByteData in_key;
|
|
tc::ByteData out_mac;
|
|
};
|
|
|
|
void util_Setup_Rfc2202_TestCases(std::vector<crypto_HmacSha1Generator_TestClass::TestCase>& test_cases);
|
|
}; |