mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 16:45:44 +00:00
21 lines
467 B
C++
21 lines
467 B
C++
#pragma once
|
|
#include "IHashFunction.h"
|
|
#include "IStreamCipher.h"
|
|
#include "IPublicKeyAlgorithm.h"
|
|
|
|
class Crypto
|
|
{
|
|
public:
|
|
enum RSAPaddingMode
|
|
{
|
|
RSA_PADDING_PKS1,
|
|
RSA_PADDING_PSS,
|
|
};
|
|
|
|
static IHashFunction* CreateSHA1();
|
|
|
|
static IStreamCipher* CreateSalsa20(const uint8_t* keyBytes, size_t keySize);
|
|
|
|
static IPublicKeyAlgorithm* CreateRSA(IPublicKeyAlgorithm::HashingAlgorithm hashingAlgorithm, RSAPaddingMode paddingMode);
|
|
};
|