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

29 lines
838 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IECCPrivate.hpp
Date: 2021-9-18
Author: Reece
***/
#pragma once
namespace Aurora::Crypto::ECC
{
struct IECCPrivate
{
virtual bool Sign(const Memory::MemoryViewRead &plainText,
Aurora::Hashing::EHashType method,
Memory::ByteBuffer &out) = 0;
virtual bool Sign(const Memory::MemoryViewRead &hash,
Memory::ByteBuffer &out) = 0;
virtual bool ECDH(const AuSPtr<IECCPublic> &partnerPublic,
Memory::ByteBuffer &sharedKey) = 0;
virtual bool AsPublicECC(Memory::ByteBuffer &out) = 0;
virtual bool AsPrivateECC(Memory::ByteBuffer &out) = 0;
virtual EECCCurve GetType() = 0;
};
}