PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CBLSIESEncryptedBlob Class Reference

#include <bls_ies.h>

Inheritance diagram for CBLSIESEncryptedBlob:
[legend]
Collaboration diagram for CBLSIESEncryptedBlob:
[legend]

Public Member Functions

bool Encrypt (const CBLSPublicKey &peerPubKey, const void *data, size_t dataSize)
 
bool Decrypt (const CBLSSecretKey &secretKey, CDataStream &decryptedDataRet) const
 
 SERIALIZE_METHODS (CBLSIESEncryptedBlob, obj)
 

Public Attributes

CBLSPublicKey ephemeralPubKey
 
unsigned char iv [16]
 
std::vector< unsigned char > data
 
bool valid {false}
 

Detailed Description

Definition at line 14 of file bls_ies.h.

Member Function Documentation

◆ Decrypt()

bool CBLSIESEncryptedBlob::Decrypt ( const CBLSSecretKey secretKey,
CDataStream decryptedDataRet 
) const

Definition at line 50 of file bls_ies.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Encrypt()

bool CBLSIESEncryptedBlob::Encrypt ( const CBLSPublicKey peerPubKey,
const void *  data,
size_t  dataSize 
)

Definition at line 32 of file bls_ies.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CBLSIESEncryptedBlob::SERIALIZE_METHODS ( CBLSIESEncryptedBlob  ,
obj   
)
inline

Definition at line 25 of file bls_ies.h.

Member Data Documentation

◆ data

std::vector<unsigned char> CBLSIESEncryptedBlob::data

Definition at line 19 of file bls_ies.h.

◆ ephemeralPubKey

CBLSPublicKey CBLSIESEncryptedBlob::ephemeralPubKey

Definition at line 17 of file bls_ies.h.

◆ iv

unsigned char CBLSIESEncryptedBlob::iv[16]

Definition at line 18 of file bls_ies.h.

◆ valid

bool CBLSIESEncryptedBlob::valid {false}

Definition at line 20 of file bls_ies.h.


The documentation for this class was generated from the following files: