libQuotient
A Qt library for building matrix clients
Quotient::HkdfKeys Struct Reference

#include <cryptoutils.h>

Inheritance diagram for Quotient::HkdfKeys:
Collaboration diagram for Quotient::HkdfKeys:

Public Member Functions

auto aes () const
 Key to be used for AES encryption / decryption. More...
 
auto mac () const
 Key to be used for MAC creation / verification. More...
 
- Public Member Functions inherited from Quotient::FixedBuffer< Aes256KeySize+HmacKeySize >
 FixedBuffer () requires(extent !
 
uint8_t * data () requires true
 
QUO_IMPLICIT operator byte_view_t< ExtentN > () const
 
QUO_IMPLICIT operator byte_span_t< ExtentN > () requires true
 
- Public Member Functions inherited from Quotient::FixedBufferBase
auto size () const
 
auto empty () const
 
void clear ()
 
QByteArray viewAsByteArray () const
 Access the bytes of the fixed buffer via QByteArray interface. More...
 
QByteArray copyToByteArray (QByteArray::size_type untilPos=-1) const
 Copy the contents of the buffer to a QByteArray. More...
 
QByteArray toBase64 () const
 
QByteArray toBase64 (QByteArray::Base64Options options) const
 
FixedBufferBaseoperator= (FixedBufferBase &&)=delete
 

Additional Inherited Members

- Public Types inherited from Quotient::FixedBufferBase
enum  InitOptions { Uninitialized , FillWithZeros , FillWithRandom }
 
using value_type = byte_t
 
using size_type = size_t
 
- Static Public Attributes inherited from Quotient::FixedBuffer< Aes256KeySize+HmacKeySize >
static constexpr auto extent
 
- Static Public Attributes inherited from Quotient::FixedBufferBase
static constexpr auto TotalSecureHeapSize = 65'536
 
- Protected Member Functions inherited from Quotient::FixedBufferBase
 FixedBufferBase (size_t bufferSize, InitOptions options)
 
 ~FixedBufferBase ()
 
 FixedBufferBase (FixedBufferBase &&other)
 
void fillFrom (QByteArray &&source)
 
uint8_t * dataForWriting ()
 
const uint8_t * data () const
 

Detailed Description

Definition at line 26 of file cryptoutils.h.

Member Function Documentation

◆ aes()

auto Quotient::HkdfKeys::aes ( ) const
inline

Key to be used for AES encryption / decryption.

Definition at line 29 of file cryptoutils.h.

◆ mac()

auto Quotient::HkdfKeys::mac ( ) const
inline

Key to be used for MAC creation / verification.

Definition at line 31 of file cryptoutils.h.


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