30 lines
817 B
C++
30 lines
817 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
|
|
{
|
|
class IECCPrivate
|
|
{
|
|
public:
|
|
virtual bool Sign(const Memory::MemoryViewRead &plainText,
|
|
EHashType method,
|
|
AuList<AuUInt8> &out) = 0;
|
|
|
|
virtual bool Sign(const Memory::MemoryViewRead &hash,
|
|
AuList<AuUInt8> &out) = 0;
|
|
|
|
virtual bool ECDH(const AuSPtr<IECCPublic> &partnerPublic,
|
|
AuList<AuUInt8> &sharedKey) = 0;
|
|
|
|
virtual bool AsPublicECC(AuList<AuUInt8> &out) = 0;
|
|
virtual bool AsPrivateECC(AuList<AuUInt8> &out) = 0;
|
|
|
|
virtual EECCCurve GetType() = 0;
|
|
};
|
|
} |