|
lime
Lime is a C++ library implementing Open Whisper System Signal protocol
|
#include <lime_x3dh.hpp>
Public Types | |
| using | serializedBuffer |
Public Member Functions | |
| SignedPreKey (const X< typename Algo::EC, lime::Xtype::publicKey > &SPk_EC_Public, const X< typename Algo::EC, lime::Xtype::privateKey > &SPk_EC_Private, const K< typename Algo::KEM, lime::Ktype::publicKey > &SPk_KEM_Public, const K< typename Algo::KEM, lime::Ktype::privateKey > &SPk_KEM_Private) | |
| SignedPreKey () | |
| SignedPreKey (const serializedBuffer &SPk, uint32_t Id) | |
| Unserializing constructor: from data read in DB. | |
| SignedPreKey (const std::vector< uint8_t >::const_iterator s) | |
| Unserializing constructor: from data read in received bundle: EC public key || KEM public key || Id || signature. | |
| 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 |
| const DSA< typename Algo::EC, lime::DSAtype::signature > & | csignature (void) const |
| DSA< typename Algo::EC, lime::DSAtype::signature > & | signature (void) |
| const Xpair< typename Algo::EC > & | cECKeypair (void) const |
| const Kpair< typename Algo::KEM > & | cKEMKeypair (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 (bool signedMessage=false) const |
| void | dump (std::ostringstream &os, std::string indent=" ") const |
| Dump the public key, signature and Id. | |
Static Public Member Functions | |
| static constexpr size_t | serializedPublicSize (void) |
| static constexpr size_t | serializedSize (void) |
| using lime::SignedPreKey< 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 || signature.
|
inline |
|
inline |
accessors
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Dump the public key, signature and Id.
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
Serialize the public keys, signature and Id to publish on the server
| [in] | signedMessage | when true return the message (to be)signed - in this case EC public key || KEM public key |
|
inline |
|
inline |