|
lime
Lime is a C++ library implementing Open Whisper System Signal protocol
|
structure holding user data while waiting for callback from X3DH server response processing More...
Public Member Functions | |
| callbackUserData (std::weak_ptr< LimeGeneric > thiz, const std::shared_ptr< limeCallback > callback, uint16_t OPkInitialBatchSize=lime::settings::OPk_initialBatchSize) | |
| created at user create/delete and keys Post. EncryptionPolicy is not used, set it to the default value anyway More... | |
| callbackUserData (std::weak_ptr< LimeGeneric > thiz, const std::shared_ptr< limeCallback > callback, uint16_t OPkServerLowLimit, uint16_t OPkBatchSize) | |
| created at update: getSelfOPks. EncryptionPolicy is not used, set it to the default value anyway More... | |
| callbackUserData (std::weak_ptr< LimeGeneric > thiz, const std::shared_ptr< limeCallback > callback, const std::shared_ptr< limeRandomSeedCallback > randomSeedCallback, std::shared_ptr< lime::EncryptionContext > encryptionContext) | |
| created at encrypt(getPeerBundle) More... | |
| callbackUserData (callbackUserData &a)=delete | |
| do not copy callback data, force passing the pointer around after creation More... | |
| callbackUserData | operator= (callbackUserData &a)=delete |
| do not copy callback data, force passing the pointer around after creation More... | |
Public Attributes | |
| std::weak_ptr< LimeGeneric > | limeObj |
| limeObj is owned by the LimeManager, it shall no be destructed, do not own this with a shared_ptr as Lime obj may own the callbackUserData obj thus creating circular reference More... | |
| const std::shared_ptr< limeCallback > | callback |
| this is a ptr to a lambda, we may use it several time so we can manage precisely its timelife More... | |
| const std::shared_ptr< limeRandomSeedCallback > | randomSeedCallback |
| this is a ptr to a lambda, we may use it several time so we can manage precisely its timelife More... | |
| std::shared_ptr< lime::EncryptionContext > | encryptionContext |
| Encryption context :AD, plain and cipher text, encryption policy and recipients. More... | |
| uint16_t | OPkServerLowLimit |
| Used when fetching from server self OPk to check if we shall upload more. More... | |
| uint16_t | OPkBatchSize |
| Used when fetching from server self OPk : how many will we upload if needed. More... | |
structure holding user data while waiting for callback from X3DH server response processing
|
inline |
created at user create/delete and keys Post. EncryptionPolicy is not used, set it to the default value anyway
|
inline |
created at update: getSelfOPks. EncryptionPolicy is not used, set it to the default value anyway
|
inline |
created at encrypt(getPeerBundle)
|
delete |
do not copy callback data, force passing the pointer around after creation
|
delete |
do not copy callback data, force passing the pointer around after creation
| const std::shared_ptr<limeCallback> lime::callbackUserData::callback |
this is a ptr to a lambda, we may use it several time so we can manage precisely its timelife
| std::shared_ptr<lime::EncryptionContext> lime::callbackUserData::encryptionContext |
Encryption context :AD, plain and cipher text, encryption policy and recipients.
| std::weak_ptr<LimeGeneric> lime::callbackUserData::limeObj |
limeObj is owned by the LimeManager, it shall no be destructed, do not own this with a shared_ptr as Lime obj may own the callbackUserData obj thus creating circular reference
| uint16_t lime::callbackUserData::OPkBatchSize |
Used when fetching from server self OPk : how many will we upload if needed.
| uint16_t lime::callbackUserData::OPkServerLowLimit |
Used when fetching from server self OPk to check if we shall upload more.
| const std::shared_ptr<limeRandomSeedCallback> lime::callbackUserData::randomSeedCallback |
this is a ptr to a lambda, we may use it several time so we can manage precisely its timelife
1.8.10