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

30 lines
832 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: IECCPrivate.hpp
Date: 2021-9-18
Author: Reece
***/
#pragma once
namespace Aurora::Crypto::ECC
{
class IECCPrivate
{
public:
virtual bool Sign(const Memory::MemoryViewRead &plainText,
EHashType method,
Memory::ByteBuffer &out) = 0;
2021-09-18 20:10:25 +00:00
virtual bool Sign(const Memory::MemoryViewRead &hash,
Memory::ByteBuffer &out) = 0;
2021-09-18 20:10:25 +00:00
virtual bool ECDH(const AuSPtr<IECCPublic> &partnerPublic,
Memory::ByteBuffer &sharedKey) = 0;
2021-09-18 20:10:25 +00:00
virtual bool AsPublicECC(Memory::ByteBuffer &out) = 0;
virtual bool AsPrivateECC(Memory::ByteBuffer &out) = 0;
2021-09-18 20:10:25 +00:00
2021-09-21 01:54:47 +00:00
virtual EECCCurve GetType() = 0;
2021-09-18 20:10:25 +00:00
};
}