|
lime
Lime is a C++ library implementing Open Whisper System Signal protocol
|
#include <lime_x3dh.hpp>
Public Types | |
| using | serializedBuffer |
Public Member Functions | |
| OneTimePreKey (const X< typename Algo::EC, lime::Xtype::publicKey > &ECPublic, const X< typename Algo::EC, lime::Xtype::privateKey > &ECPrivate, const K< typename Algo::KEM, lime::Ktype::publicKey > &KEMPublic, const K< typename Algo::KEM, lime::Ktype::privateKey > &KEMPrivate, uint32_t Id) | |
| OneTimePreKey () | |
| OneTimePreKey (const serializedBuffer &OPk, uint32_t Id) | |
| Unserializing constructor: from data read in DB. | |
| OneTimePreKey (const std::vector< uint8_t >::const_iterator s) | |
| Unserializing constructor: from data read in received bundle EC public key || KEM public key || Id. | |
| const X< typename Algo::EC, lime::Xtype::privateKey > & | cECprivateKey (void) const |
| accessors | |
| const X< typename Algo::EC, lime::Xtype::publicKey > & | cECpublicKey (void) const |
| const K< typename Algo::KEM, lime::Ktype::privateKey > & | cKEMprivateKey (void) const |
| const K< typename Algo::KEM, lime::Ktype::publicKey > & | cKEMpublicKey (void) const |
| uint32_t | get_Id (void) const |
| void | set_Id (uint32_t Id) |
| serializedBuffer | serialize (void) const |
| Serialize the key pair (to store in DB): EC public || EC private || KEM public || KEM private. | |
| std::vector< uint8_t > | serializePublic (void) const |
| void | dump (std::ostringstream &os, std::string indent=" ") const |
| Dump the public key and Id. | |
Static Public Member Functions | |
| static constexpr size_t | serializedPublicSize (void) |
| static constexpr size_t | serializedSize (void) |
| using lime::OneTimePreKey< Algo, true >::serializedBuffer |
|
inline |
|
inline |
|
inline |
Unserializing constructor: from data read in DB.
|
inline |
Unserializing constructor: from data read in received bundle EC public key || KEM public key || Id.
|
inline |
accessors
|
inline |
|
inline |
|
inline |
|
inline |
Dump the public key and Id.
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
Serialize the public key and Id to publish on the server : EC public key || KEM public key || Id
| [in] | signedMessage | when true return the only the OPk part to be signed |
|
inline |