17 enum class SystemType :
int {
34 OpenSSLInterface& operator=(OpenSSLInterface
const&);
35 OpenSSLInterface(OpenSSLInterface
const&);
41 virtual ~OpenSSLInterface() =
default;
43 virtual bool generateKeyPair(::std::string& privateKey, ::std::string& publicKey) ;
46 constructPublicKey(::std::string
const& modulus, ::std::string
const& exponent, ::std::string& keyOut) ;
48 virtual ::std::string encryptData(
49 ::std::string
const& publicKey,
50 ::std::string
const& data,
51 ::Crypto::Asymmetric::Padding paddingType,
52 ::Crypto::Asymmetric::PubKeyFormat keyFormat,
56 virtual ::std::string decryptData(
57 ::std::string
const& privateKey,
58 ::std::string
const& data,
59 ::Crypto::Asymmetric::Padding paddingType
62 virtual ::std::string signData(
63 ::std::string
const& privateKey,
64 ::std::string
const& data,
65 ::Crypto::Hash::HashType hash,
66 ::Crypto::Asymmetric::PrivateKeySigningFormat format
69 virtual bool verifyData(
70 ::std::string
const& publicKey,
71 ::std::string
const& signature,
72 ::std::string
const& data,
73 ::Crypto::Hash::HashType hash
77 computeSharedSecret(::std::string
const& myPrivateKey, ::std::string
const& peerPublicKey) ;
89 ::std::string
const& privateKey,
90 ::std::string
const& data,
91 ::Crypto::Asymmetric::Padding paddingType
95 ::std::string
const& publicKey,
96 ::std::string
const& data,
97 ::Crypto::Asymmetric::Padding paddingType,
98 ::Crypto::Asymmetric::PubKeyFormat keyFormat,
112 MCNAPI
bool $constructPublicKey(::std::string
const& modulus, ::std::string
const& exponent, ::std::string& keyOut);
115 ::std::string
const& publicKey,
116 ::std::string
const& data,
117 ::Crypto::Asymmetric::Padding paddingType,
118 ::Crypto::Asymmetric::PubKeyFormat keyFormat,
123 $decryptData(::std::string
const& privateKey, ::std::string
const& data, ::Crypto::Asymmetric::Padding paddingType);
126 ::std::string
const& privateKey,
127 ::std::string
const& data,
128 ::Crypto::Hash::HashType hash,
129 ::Crypto::Asymmetric::PrivateKeySigningFormat format
133 ::std::string
const& publicKey,
134 ::std::string
const& signature,
135 ::std::string
const& data,
136 ::Crypto::Hash::HashType hash
139 MCNAPI ::std::string
$computeSharedSecret(::std::string
const& myPrivateKey, ::std::string
const& peerPublicKey);
MCAPI::std::string $encryptData(::std::string const &publicKey, ::std::string const &data, ::Crypto::Asymmetric::Padding paddingType, ::Crypto::Asymmetric::PubKeyFormat keyFormat, bool useSHA256)
MCAPI::std::string _encryptDataRSA(::std::string const &publicKey, ::std::string const &data, ::Crypto::Asymmetric::Padding paddingType, ::Crypto::Asymmetric::PubKeyFormat keyFormat, bool useSHA256)