|
libkazv
|
Encrypt room key as olm and add it to the room's pending keyshare slots. More...
#include <client-model.hpp>

Public Types | |
| using | UserIdToDeviceIdMap = immer::map< std::string, immer::flex_vector< std::string > > |
Static Public Member Functions | |
| static std::size_t | randomSize (UserIdToDeviceIdMap devices) |
Public Attributes | |
| std::string | roomId |
| The room to share the key event in. More... | |
| UserIdToDeviceIdMap | devices |
| Devices to encrypt for. More... | |
| Event | e |
| The key event to encrypt. More... | |
| RandomData | random |
| The random data for the encryption. More... | |
Encrypt room key as olm and add it to the room's pending keyshare slots.
This is to ensure atomicity and that we do not lose an olm-encrypted event.
| using Kazv::PrepareForSharingRoomKeyAction::UserIdToDeviceIdMap = immer::map<std::string, immer::flex_vector<std::string> > |
|
static |
| UserIdToDeviceIdMap Kazv::PrepareForSharingRoomKeyAction::devices |
Devices to encrypt for.
| Event Kazv::PrepareForSharingRoomKeyAction::e |
The key event to encrypt.
| RandomData Kazv::PrepareForSharingRoomKeyAction::random |
The random data for the encryption.
Must be of at least size randomSize(devices).
| std::string Kazv::PrepareForSharingRoomKeyAction::roomId |
The room to share the key event in.