133 #ifndef OPENTXS_CORE_CRYPTO_OTKEYPAIR_HPP
134 #define OPENTXS_CORE_CRYPTO_OTKEYPAIR_HPP
178 class OTAsymmetricKey;
182 class OTPasswordData;
184 class OTSignatureMetadata;
211 const OTPassword* pImportPassword =
nullptr)
const;
214 const OTPassword* pImportPassword =
nullptr)
const;
221 const OTString* pstrReason =
nullptr,
231 const OTString& strCert,
bool bEscaped =
true,
232 const OTString* pstrReason =
nullptr,
237 const OTString& strCert,
bool bEscaped =
true,
238 const OTString* pstrReason =
nullptr,
243 const OTString* pstrReason =
nullptr,
252 const OTString* pstrReason =
nullptr,
257 const OTString* pstrReason =
nullptr,
306 const OTSignature& theSignature,
bool bInclusive =
false)
const;
313 #endif // OPENTXS_CORE_CRYPTO_OTKEYPAIR_HPP
EXPORT bool LoadCertAndPrivateKeyFromString(const OTString &strInput, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT bool ReEncrypt(const OTPassword &theExportPassword, bool bImporting, OTString &strOutput)
std::list< OTAsymmetricKey * > listOfAsymmetricKeys
EXPORT const OTAsymmetricKey & GetPublicKey() const
EXPORT int32_t GetPublicKeyBySignature(listOfAsymmetricKeys &listOutput, const OTSignature &theSignature, bool bInclusive=false) const
EXPORT bool SavePrivateKeyToString(OTString &strOutput, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) const
EXPORT bool SaveAndReloadBothKeysFromTempFile(OTString *pstrOutputCert=nullptr, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT bool LoadBothKeysFromCertFile(const OTString &strFoldername, const OTString &strFilename, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT bool HasPublicKey()
EXPORT void SetMetadata(const OTSignatureMetadata &theMetadata)
EXPORT bool SetPublicKey(const OTASCIIArmor &strKey)
EXPORT bool CalculateID(OTIdentifier &theOutput) const
EXPORT bool LoadPublicKeyFromCertString(const OTString &strCert, bool bEscaped=true, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT const OTAsymmetricKey & GetPrivateKey() const
EXPORT bool LoadPrivateKeyFromCertString(const OTString &strCert, bool bEscaped=true, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT bool SetPrivateKey(const OTString &strKey, bool bEscaped=false)
EXPORT bool SaveCertToString(OTString &strOutput, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) const
EXPORT bool HasPrivateKey()
EXPORT bool SaveCertAndPrivateKeyToString(OTString &strOutput, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT bool LoadPublicKey(const OTString &strFoldername, const OTString &strFilename)
EXPORT bool LoadPrivateKey(const OTString &strFoldername, const OTString &strFilename, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT bool MakeNewKeypair(int32_t nBits=1024)
EXPORT bool SignContract(OTContract &theContract, const OTPasswordData *pPWData=nullptr)
EXPORT bool LoadPublicKeyFromCertFile(const OTString &strFoldername, const OTString &strFilename, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr)