17 enum class SystemType :
int {
45 virtual bool generateKeyPair(::std::string& privateKey, ::std::string& publicKey) ;
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
63 virtual ::std::string signData(
64 ::std::string
const& privateKey,
65 ::std::string
const& data,
66 ::Crypto::Hash::HashType hash,
67 ::Crypto::Asymmetric::PrivateKeySigningFormat format
71 virtual bool verifyData(
72 ::std::string
const& publicKey,
73 ::std::string
const& signature,
74 ::std::string
const& data,
75 ::Crypto::Hash::HashType hash
80 computeSharedSecret(::std::string
const& myPrivateKey, ::std::string
const& peerPublicKey) ;
86 MCAPI ::std::string _computeSharedSecretECC(::std::string
const& myPrivateKey, ::std::string
const& peerPublicKey);
88 MCAPI ::std::string _decryptDataRSA(
89 ::std::string
const& privateKey,
90 ::std::string
const& data,
91 ::Crypto::Asymmetric::Padding paddingType
94 MCAPI ::std::string _encryptDataRSA(
95 ::std::string
const& publicKey,
96 ::std::string
const& data,
97 ::Crypto::Asymmetric::Padding paddingType,
98 ::Crypto::Asymmetric::PubKeyFormat keyFormat
101 MCAPI
bool _generateKeyPairECC(::std::string& privateKey, ::std::string& publicKey);
113 MCAPI
bool $generateKeyPair(::std::string& privateKey, ::std::string& publicKey);
115 MCAPI ::std::string $encryptData(
116 ::std::string
const& publicKey,
117 ::std::string
const& data,
118 ::Crypto::Asymmetric::Padding paddingType,
119 ::Crypto::Asymmetric::PubKeyFormat keyFormat
123 $decryptData(::std::string
const& privateKey, ::std::string
const& data, ::Crypto::Asymmetric::Padding paddingType);
125 MCAPI ::std::string $signData(
126 ::std::string
const& privateKey,
127 ::std::string
const& data,
128 ::Crypto::Hash::HashType hash,
129 ::Crypto::Asymmetric::PrivateKeySigningFormat format
132 MCAPI
bool $verifyData(
133 ::std::string
const& publicKey,
134 ::std::string
const& signature,
135 ::std::string
const& data,
136 ::Crypto::Hash::HashType hash
139 MCAPI ::std::string $computeSharedSecret(::std::string
const& myPrivateKey, ::std::string
const& peerPublicKey);
145 MCAPI
static void** $vftable();