/*** Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved. File: IRSAPrivate.hpp Date: 2021-7-1 Author: Reece ***/ #pragma once namespace Aurora::Crypto::RSA { // Remember: there is no such thing as private encryption class IRSAPrivate { public: virtual bool Sign(const void *buffer, AuUInt length, EHashType method, EPaddingType type, AuList &out) = 0; virtual bool Sign(const AuList &in, EHashType method, EPaddingType type, AuList &out) = 0; virtual bool Decrypt(const void *buffer, AuUInt length, EPaddingType type, AuList &out) = 0; virtual bool Decrypt(const AuList &in, EPaddingType type, AuList &out) = 0; virtual AuSPtr ToPublic() = 0; virtual bool ToKey(const RSAMeta &meta, AuList &out) = 0; }; }