AuroraRuntime/Include/Aurora/Crypto/RSA/IRSAPublic.hpp
Reece 510928e62e [*] Linux should not raise int3 unless the binary is a debug one
TODO: investigate registering an int3 signal handler to prevent crashing under internal builds
[*] Amend MemoryViews
[*] Begin shifting towards MemoryView based binary APIs
[*] Fix public RSA key leak
[+] Some clean up and possible bug fixes
2021-09-15 00:56:26 +01:00

27 lines
767 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IRSAPublic.hpp
Date: 2021-7-1
Author: Reece
***/
#pragma once
namespace Aurora::Crypto::RSA
{
// Rememeber: there is no such thing as public decryption
class IRSAPublic
{
public:
virtual bool Verify(Memory::MemoryViewRead payload,
Memory::MemoryViewRead signature,
EHashType method,
EPaddingType type) = 0;
virtual bool Encrypt(Memory::MemoryViewRead plainText,
EPaddingType type,
AuList<AuUInt8> &out) = 0;
virtual bool ToKey(ERSAKeyType type, AuList<AuUInt8> &out) = 0;
};
}