libkazv
Kazv::GenerateAndUploadOneTimeKeysAction Struct Reference

The action to generate one-time keys. More...

#include <client-model.hpp>

Static Public Member Functions

static std::size_t randomSize (std::size_t numToGen)
 

Public Attributes

std::size_t numToGen
 The number of keys to generate. More...
 
RandomData random
 The random data used to generate keys. More...
 

Detailed Description

The action to generate one-time keys.

random.size() must be at least randomSize(numToGen).

This action will not generate keys exceeding the local limit of olm.

Member Function Documentation

◆ randomSize()

std::size_t Kazv::GenerateAndUploadOneTimeKeysAction::randomSize ( std::size_t  numToGen)
static
Returns
The size of random needed to generate numToGen one-time keys

Member Data Documentation

◆ numToGen

std::size_t Kazv::GenerateAndUploadOneTimeKeysAction::numToGen

The number of keys to generate.

◆ random

RandomData Kazv::GenerateAndUploadOneTimeKeysAction::random

The random data used to generate keys.


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