1#ifndef _PRIVMXLIB_ENDPOINT_CRYPTO_CRYPTOAPI_HPP_
2#define _PRIVMXLIB_ENDPOINT_CRYPTO_CRYPTOAPI_HPP_
8#include "privmx/endpoint/core/Buffer.hpp"
9#include "privmx/endpoint/crypto/Types.hpp"
69 [[deprecated(
"Use derivePrivateKey2(const std::string& password, const std::string& salt).")]]
183 CryptoApi(
const std::shared_ptr<CryptoApiImpl>& impl);
184 std::shared_ptr<CryptoApiImpl> _impl;
core::Buffer decryptDataSymmetric(const core::Buffer &data, const core::Buffer &symmetricKey)
core::Buffer encryptDataSymmetric(const core::Buffer &data, const core::Buffer &symmetricKey)
std::string derivePrivateKey2(const std::string &password, const std::string &salt)
BIP39_t fromEntropy(const core::Buffer &entropy, const std::string &password=std::string())
core::Buffer mnemonicToSeed(const std::string &mnemonic, const std::string &password=std::string())
core::Buffer mnemonicToEntropy(const std::string &mnemonic)
static CryptoApi create()
BIP39_t fromMnemonic(const std::string &mnemonic, const std::string &password=std::string())
std::string convertPEMKeytoWIFKey(const std::string &pemKey)
std::string generatePrivateKey(const std::optional< std::string > &randomSeed)
std::string entropyToMnemonic(const core::Buffer &entropy)
BIP39_t generateBip39(std::size_t strength, const std::string &password=std::string())
std::string derivePublicKey(const std::string &privateKey)
bool verifySignature(const core::Buffer &data, const core::Buffer &signature, const std::string &publicKey)
std::string derivePrivateKey(const std::string &password, const std::string &salt)
std::string convertPGPAsn1KeyToBase58DERKey(const std::string &pgpKey)
core::Buffer signData(const core::Buffer &data, const std::string &privateKey)
core::Buffer generateKeySymmetric()