|
lime
Lime is a C++ library implementing Open Whisper System Signal protocol
|
Holds everything found in a key bundle received from X3DH server. More...
Public Member Functions | |
| X3DH_peerBundle (std::string &&deviceId, const std::vector< uint8_t >::const_iterator bundle, bool haveOPk, std::ostringstream &message_trace) | |
| X3DH_peerBundle (std::string &&deviceId) | |
Static Public Member Functions | |
| static constexpr size_t | ssize (bool haveOPk) |
Public Attributes | |
| const std::string | deviceId |
| const DSA< typename Curve::EC, lime::DSAtype::publicKey > | Ik |
| const SignedPreKey< Curve > | SPk |
| OneTimePreKey< Curve > | OPk |
| const lime::X3DHKeyBundleFlag | bundleFlag |
Holds everything found in a key bundle received from X3DH server.
|
inline |
Constructor gets vector<uint8_t> iterators to the bundle begining
| [in] | deviceId | peer Device Id providing this key bundle |
| [in] | bundle | iterator pointing to the begining of the key bundle - Ik begin |
| [in] | haveOPk | true when there is an OPk to parse |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. construct without bundle when not present in the parsed server response
|
inlinestatic |
| const lime::X3DHKeyBundleFlag lime::X3DH_peerBundle< Curve >::bundleFlag |
Flag this bundle as empty and if not if it holds an OPk, possible values : noOPk, OPk, noBundle
| const std::string lime::X3DH_peerBundle< Curve >::deviceId |
peer device Id
| const DSA<typename Curve::EC, lime::DSAtype::publicKey> lime::X3DH_peerBundle< Curve >::Ik |
peer device public identity key
| OneTimePreKey<Curve> lime::X3DH_peerBundle< Curve >::OPk |
peer device One Time preKey
| const SignedPreKey<Curve> lime::X3DH_peerBundle< Curve >::SPk |
peer device current public pre-signed key
1.8.10