|
lime
Lime is a C++ library implementing Open Whisper System Signal protocol
|
#include <lime_x3dh.hpp>
Public Types | |
| using | serializedBuffer = sBuffer<X<Curve, lime::Xtype::publicKey>::ssize() + X<Curve, lime::Xtype::privateKey>::ssize()> |
Public Member Functions | |
| OneTimePreKey (const X< Curve, lime::Xtype::publicKey > &OPkPublic, const X< Curve, lime::Xtype::privateKey > &OPkPrivate, 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. | |
| const X< Curve, lime::Xtype::privateKey > & | cprivateKey (void) const |
| accessors | |
| const X< Curve, lime::Xtype::publicKey > & | cpublicKey (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): First the public value, then the private one. | |
| std::vector< uint8_t > | serializePublic (void) const |
| Serialize the public key and Id to publish on the server. | |
| 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< Curve, false >::serializedBuffer = sBuffer<X<Curve, lime::Xtype::publicKey>::ssize() + X<Curve, lime::Xtype::privateKey>::ssize()> |
|
inline |
|
inline |
|
inline |
Unserializing constructor: from data read in DB.
|
inline |
Unserializing constructor: from data read in received bundle.
|
inline |
accessors
|
inline |
|
inline |
Dump the public key and Id.
|
inline |
|
inline |
Serialize the key pair (to store in DB): First the public value, then the private one.
|
inlinestaticconstexpr |
Serializing:
|
inlinestaticconstexpr |
|
inline |
Serialize the public key and Id to publish on the server.
|
inline |