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,
|
2022-01-20 16:04:53 +00:00
|
|
|
Memory::ByteBuffer &out) = 0;
|
2021-09-18 20:10:25 +00:00
|
|
|
|
|
|
|
virtual bool Sign(const Memory::MemoryViewRead &hash,
|
2022-01-20 16:04:53 +00:00
|
|
|
Memory::ByteBuffer &out) = 0;
|
2021-09-18 20:10:25 +00:00
|
|
|
|
|
|
|
virtual bool ECDH(const AuSPtr<IECCPublic> &partnerPublic,
|
2022-01-20 16:04:53 +00:00
|
|
|
Memory::ByteBuffer &sharedKey) = 0;
|
2021-09-18 20:10:25 +00:00
|
|
|
|
2022-01-20 16:04:53 +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
|
|
|
};
|
|
|
|
}
|