|
| | SignedPreKey (const X< Curve, lime::Xtype::publicKey > &SPkPublic, const X< Curve, lime::Xtype::privateKey > &SPkPrivate) |
| |
| | SignedPreKey () |
| |
| | SignedPreKey (const serializedBuffer &SPk, uint32_t Id) |
| | Unserializing constructor: from data read in DB. More...
|
| |
| | SignedPreKey (const std::vector< uint8_t >::const_iterator s) |
| | Unserializing constructor: from data read in received bundle. More...
|
| |
| const X< Curve, lime::Xtype::privateKey > & | cprivateKey (void) const |
| | accessors More...
|
| |
| const X< Curve, lime::Xtype::publicKey > & | cpublicKey (void) const |
| |
| const DSA< Curve, lime::DSAtype::signature > & | csignature (void) const |
| |
| DSA< Curve, lime::DSAtype::signature > & | signature (void) |
| |
| 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. More...
|
| |
| 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. More...
|
| |
template<typename Curve >
template<typename Curve >
template<typename Curve >
template<typename Curve >
Unserializing constructor: from data read in DB.
template<typename Curve >
Unserializing constructor: from data read in received bundle.
template<typename Curve >
template<typename Curve >
template<typename Curve >
template<typename Curve >
| void lime::SignedPreKey< Curve, false >::dump |
( |
std::ostringstream & |
os, |
|
|
std::string |
indent = " " |
|
) |
| const |
|
inline |
Dump the public key, signature and Id.
template<typename Curve >
template<typename Curve >
Serialize the key pair (to store in DB): First the public value, then the private one.
template<typename Curve >
Serializing:
- public is publicKey || signature || Id (4bytes) -> used to publish
- storage publicKey || privateKey -> used to store in DB, Id is stored separately
template<typename Curve >
template<typename Curve >
| std::vector<uint8_t> lime::SignedPreKey< Curve, false >::serializePublic |
( |
bool |
signedMessage = false | ) |
const |
|
inline |
Serialize the public key, signature and Id to publish on the server
- Parameters
-
| [in] | signedMessage | when true return the message (to be)signed - in this case the public key |
- Returns
- the serialized public value: either the public part to be signed, or the whole bundle: public key || signature || Id
template<typename Curve >
template<typename Curve >
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