|
virtual | ~OTCrypto () |
|
virtual OTPassword * | InstantiateBinarySecret () const =0 |
|
EXPORT bool | GetPasswordFromConsole (OTPassword &theOutput, bool bRepeat=false) const |
|
EXPORT bool | GetPasswordFromConsoleLowLevel (OTPassword &theOutput, const char *szPrompt) const |
|
virtual bool | RandomizeMemory (uint8_t *szDestination, uint32_t nNewSize) const =0 |
|
virtual bool | CalculateDigest (const OTString &strInput, const OTString &strHashAlgorithm, OTIdentifier &theOutput) const =0 |
|
virtual bool | CalculateDigest (const OTData &dataInput, const OTString &strHashAlgorithm, OTIdentifier &theOutput) const =0 |
|
bool | IsBase62 (const std::string &str) const |
|
virtual void | SetIDFromBase62String (const OTString &strInput, OTIdentifier &theOutput) const =0 |
|
virtual void | SetBase62StringFromID (const OTIdentifier &theInput, OTString &strOutput) const =0 |
|
virtual bool | Base64Encode (const OTData &theInput, OTString &strOutput, bool bLineBreaks=true) const |
|
virtual bool | Base64Decode (const OTString &strInput, OTData &theOutput, bool bLineBreaks=true) const |
|
virtual char * | Base64Encode (const uint8_t *input, int32_t in_len, bool bLineBreaks) const =0 |
|
virtual uint8_t * | Base64Decode (const char *input, size_t *out_len, bool bLineBreaks) const =0 |
|
virtual OTPassword * | DeriveKey (const OTPassword &userPassword, const OTPayload &dataSalt, uint32_t uIterations, const OTPayload &dataCheckHash=OTPayload()) const =0 |
|
virtual OTPassword * | DeriveNewKey (const OTPassword &userPassword, const OTPayload &dataSalt, uint32_t uIterations, OTPayload &dataCheckHash) const =0 |
|
virtual bool | Encrypt (const OTPassword &theRawSymmetricKey, const char *szInput, uint32_t lInputLength, const OTPayload &theIV, OTPayload &theEncryptedOutput) const =0 |
|
virtual bool | Decrypt (const OTPassword &theRawSymmetricKey, const char *szInput, uint32_t lInputLength, const OTPayload &theIV, OTCrypto_Decrypt_Output theDecryptedOutput) const =0 |
|
virtual bool | Seal (mapOfAsymmetricKeys &RecipPubKeys, const OTString &theInput, OTData &dataOutput) const =0 |
|
virtual bool | Open (OTData &dataInput, const OTPseudonym &theRecipient, OTString &theOutput, const OTPasswordData *pPWData=nullptr) const =0 |
|
virtual bool | SignContract (const OTString &strContractUnsigned, const OTAsymmetricKey &theKey, OTSignature &theSignature, const OTString &strHashType, const OTPasswordData *pPWData=nullptr)=0 |
|
virtual bool | VerifySignature (const OTString &strContractToVerify, const OTAsymmetricKey &theKey, const OTSignature &theSignature, const OTString &strHashType, const OTPasswordData *pPWData=nullptr) const =0 |
|
virtual bool | SignContract (const OTString &strContractUnsigned, const OTString &strSigHashType, const std::string &strCertFileContents, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr)=0 |
|
virtual bool | VerifySignature (const OTString &strContractToVerify, const OTString &strSigHashType, const std::string &strCertFileContents, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const =0 |
|
EXPORT void | Init () const |
|
EXPORT void | Cleanup () const |
|
Definition at line 232 of file OTCrypto.hpp.