Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
bls_ies.cpp
Go to the documentation of this file.
14 static bool EncryptBlob(const void* in, size_t inSize, Out& out, const void* symKey, const void* iv)
24 static bool DecryptBlob(const void* in, size_t inSize, Out& out, const void* symKey, const void* iv)
33 bool CBLSIESEncryptedBlob::Encrypt(const CBLSPublicKey& peerPubKey, const void* plainTextData, size_t dataSize)
52 bool CBLSIESEncryptedBlob::Decrypt(const CBLSSecretKey& secretKey, CDataStream& decryptedDataRet) const
67 bool CBLSIESMultiRecipientBlobs::Encrypt(const std::vector<CBLSPublicKey>& recipients, const BlobVector& _blobs)
99 bool CBLSIESMultiRecipientBlobs::Encrypt(size_t idx, const CBLSPublicKey& recipient, const Blob& blob)
115 bool CBLSIESMultiRecipientBlobs::Decrypt(size_t idx, const CBLSSecretKey& sk, Blob& blobRet) const
bool Decrypt(const CBLSSecretKey &secretKey, CDataStream &decryptedDataRet) const
Definition: bls_ies.cpp:52
bool Encrypt(const CBLSPublicKey &peerPubKey, const void *data, size_t dataSize)
Definition: bls_ies.cpp:33
Definition: bls.h:238
void GetStrongRandBytes(unsigned char *out, int num)
Function to gather random data from multiple sources, failing whenever any of those source fail to pr...
Definition: random.cpp:317
int Decrypt(const unsigned char *data, int size, unsigned char *out) const
Definition: aes.cpp:176
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
bool Encrypt(const std::vector< CBLSPublicKey > &recipients, const BlobVector &_blobs)
Definition: bls_ies.cpp:67
uint256 SerializeHash(const T &obj, int nType=SER_GETHASH, int nVersion=PROTOCOL_VERSION)
Compute the 256-bit hash of an object's serialization.
Definition: hash.h:254
Definition: bls.h:263
int Encrypt(const unsigned char *data, int size, unsigned char *out) const
Definition: aes.cpp:159
CBLSSecretKey ephemeralSecretKey
Definition: bls_ies.h:90
Definition: aes.h:66
static bool DecryptBlob(const void *in, size_t inSize, Out &out, const void *symKey, const void *iv)
Definition: bls_ies.cpp:24
bool DHKeyExchange(const CBLSSecretKey &sk, const CBLSPublicKey &pk)
Definition: bls.cpp:247
Definition: aes.h:79
bool Decrypt(size_t idx, const CBLSSecretKey &sk, Blob &blobRet) const
Definition: bls_ies.cpp:115
static bool EncryptBlob(const void *in, size_t inSize, Out &out, const void *symKey, const void *iv)
Definition: bls_ies.cpp:14