|
lime
Lime is a C++ library implementing Open Whisper System Signal protocol
|
#include <lime_double_ratchet.hpp>
Public Types | |
| using | serializedBuffer = sBuffer<X<Curve, lime::Xtype::publicKey>::ssize() + X<Curve, lime::Xtype::privateKey>::ssize()> |
| using | serializedPublicBuffer = std::array<uint8_t, X<Curve, lime::Xtype::publicKey>::ssize()> |
Public Member Functions | |
| ARsKey (const SignedPreKey< Curve > &SPk) | |
| ARsKey (const X< Curve, lime::Xtype::publicKey > &DHsPublic, const X< Curve, lime::Xtype::privateKey > &DHsPrivate) | |
| ARsKey () | |
| ARsKey (const serializedBuffer &DHs) | |
| X< Curve, lime::Xtype::privateKey > & | privateKey (void) |
| X< Curve, lime::Xtype::publicKey > & | publicKey (void) |
| 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 part only to insert in the DR message header. | |
Static Public Member Functions | |
| static constexpr size_t | serializedSize (void) |
| static constexpr size_t | serializedPublicSize (void) |
| using lime::ARsKey< Curve, false >::serializedBuffer = sBuffer<X<Curve, lime::Xtype::publicKey>::ssize() + X<Curve, lime::Xtype::privateKey>::ssize()> |
| using lime::ARsKey< Curve, false >::serializedPublicBuffer = std::array<uint8_t, X<Curve, lime::Xtype::publicKey>::ssize()> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Serialize the key pair (to store in DB): First the public value, then the private one.
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
Serialize the public part only to insert in the DR message header.