libkazv
Kazv::PrepareForSharingRoomKeyAction Struct Reference

Encrypt room key as olm and add it to the room's pending keyshare slots. More...

#include <client-model.hpp>

Collaboration diagram for Kazv::PrepareForSharingRoomKeyAction:

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...
 

Detailed Description

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.

Member Typedef Documentation

◆ UserIdToDeviceIdMap

using Kazv::PrepareForSharingRoomKeyAction::UserIdToDeviceIdMap = immer::map<std::string, immer::flex_vector<std::string> >

Member Function Documentation

◆ randomSize()

std::size_t Kazv::PrepareForSharingRoomKeyAction::randomSize ( PrepareForSharingRoomKeyAction::UserIdToDeviceIdMap  devices)
static

Member Data Documentation

◆ devices

UserIdToDeviceIdMap Kazv::PrepareForSharingRoomKeyAction::devices

Devices to encrypt for.

◆ e

Event Kazv::PrepareForSharingRoomKeyAction::e

The key event to encrypt.

◆ random

RandomData Kazv::PrepareForSharingRoomKeyAction::random

The random data for the encryption.

Must be of at least size randomSize(devices).

◆ roomId

std::string Kazv::PrepareForSharingRoomKeyAction::roomId

The room to share the key event in.


The documentation for this struct was generated from the following files: