|
| | 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. More...
|
| |
| | OneTimePreKey (const std::vector< uint8_t >::const_iterator s) |
| | Unserializing constructor: from data read in received bundle EC public key || KEM public key || Id. More...
|
| |
| const X< typename Algo::EC, lime::Xtype::privateKey > & | cECprivateKey (void) const |
| | accessors More...
|
| |
| 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. More...
|
| |
| std::vector< uint8_t > | serializePublic (void) const |
| |
| void | dump (std::ostringstream &os, std::string indent=" ") const |
| | Dump the public key and Id. More...
|
| |
Unserializing constructor: from data read in DB.
Unserializing constructor: from data read in received bundle EC public key || KEM public key || Id.
template<typename Algo >
| void lime::OneTimePreKey< Algo, true >::dump |
( |
std::ostringstream & |
os, |
|
|
std::string |
indent = " " |
|
) |
| const |
|
inline |
Dump the public key and Id.
Serialize the key pair (to store in DB): EC public || EC private || KEM public || KEM private.
Serializing:
- public is EC public Key || KEM public key || Id (4bytes) -> used to publish
- storage EC public Key || EC private Key || KEM public key || KEM private key -> used to store in DB, Id is stored separately
Serialize the public key and Id to publish on the server : EC public key || KEM public key || Id
- Parameters
-
| [in] | signedMessage | when true return the only the OPk part to be signed |
The documentation for this struct was generated from the following file:
- /tmp/B.4283tfon/BUILD/lime-5.4.38-build/lime-5.4.38/src/lime_x3dh.hpp