|
lime
Lime is a C++ library implementing Open Whisper System Signal protocol
|
#include <lime_double_ratchet.hpp>
Public Types | |
| using | serializedBuffer |
| using | serializedPublicBuffer |
Public Member Functions | |
| ARsKey (const Xpair< typename Algo::EC > &ecDHs, const Kpair< typename Algo::KEM > &kemDHs, const K< typename Algo::KEM, lime::Ktype::cipherText > &kemCTs) | |
| ARsKey (const SignedPreKey< Algo > &SPk) | |
| ARsKey (const Xpair< typename Algo::EC > &ecDHs, const Kpair< typename Algo::KEM > &kemDHs) | |
| ARsKey (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, const K< typename Algo::KEM, lime::Ktype::cipherText > &KEMCT) | |
| ARsKey () | |
| ARsKey (const serializedBuffer &DHs) | |
| void | setEC (const X< typename Algo::EC, lime::Xtype::publicKey > &ECPublic, const X< typename Algo::EC, lime::Xtype::privateKey > &ECPrivate) |
| Set Ec key pair only: used to update this part without touching the KEM one. | |
| X< typename Algo::EC, lime::Xtype::privateKey > & | ECPrivateKey (void) |
| const X< typename Algo::EC, lime::Xtype::publicKey > & | ECPublicKey (void) const |
| K< typename Algo::KEM, lime::Ktype::privateKey > & | KEMPrivateKey (void) |
| const K< typename Algo::KEM, lime::Ktype::publicKey > & | KEMPublicKey (void) const |
| K< typename Algo::KEM, lime::Ktype::cipherText > & | KEMCipherText (void) |
| serializedBuffer | serialize (void) const |
| Serialize the key pair (to store in DB): First the public value, then the private one, then the cipherText. | |
| std::vector< uint8_t > | serializePublic (void) const |
| Serialize the public part only to insert in the DR message header: EC public || KEM public || KEM ciphertext. | |
| std::vector< uint8_t > | serializeECPublic (void) const |
| Serialize the EC public part only to insert in the DR message header when we avoid sending the KEM part. | |
| std::vector< uint8_t > | getKEMIndex (void) const |
| Index is a hash of KEM public key/Cipher Text to identify it without sending/storing it all. | |
Static Public Member Functions | |
| static constexpr size_t | serializedSize (void) |
| static constexpr size_t | serializedPublicSize (void) |
| using lime::ARsKey< Algo, true >::serializedBuffer |
| using lime::ARsKey< Algo, true >::serializedPublicBuffer |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Index is a hash of KEM public key/Cipher Text to identify it without sending/storing it all.
|
inline |
|
inline |
|
inline |
|
inline |
Serialize the key pair (to store in DB): First the public value, then the private one, then the cipherText.
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
inline |
Set Ec key pair only: used to update this part without touching the KEM one.