AuroraRuntime/Include/Aurora/Crypto/ECC/IECCPublic.hpp

27 lines
678 B
C++
Raw Normal View History

2021-09-18 20:10:25 +00:00
/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IECCPublic.hpp
Date: 2021-9-18
Author: Reece
***/
#pragma once
namespace Aurora::Crypto::ECC
{
class IECCPublic
{
public:
virtual bool Verify(const Memory::MemoryViewRead &hash,
const Memory::MemoryViewRead &signature) = 0;
virtual bool Verify(const Memory::MemoryViewRead &plaintext,
const Memory::MemoryViewRead &signature,
EHashType method) = 0;
virtual bool AsPublicECC(Memory::ByteBuffer &out) = 0;
2021-09-18 20:10:25 +00:00
virtual EECCCurve GetType() = 0;
};
}