libkazv
Kazv::CryptoPrivate Struct Reference

#include <crypto-p.hpp>

Public Member Functions

 CryptoPrivate ()
 
 CryptoPrivate (RandomTag, RandomData data)
 
 CryptoPrivate (const CryptoPrivate &that)
 
 ~CryptoPrivate ()
 
std::size_t checkUtilError (std::size_t code) const
 
std::string pickle () const
 
void unpickle (std::string data)
 
ByteArray identityKeys () const
 
std::string ed25519IdentityKey () const
 
std::string curve25519IdentityKey () const
 
std::size_t checkError (std::size_t code) const
 
MaybeString decryptOlm (nlohmann::json content)
 
MaybeString decryptMegOlm (nlohmann::json eventJson)
 
bool createInboundSession (std::string theirCurve25519IdentityKey, std::string message)
 returns whether the session is successfully established More...
 
bool createInboundGroupSession (KeyOfGroupSession k, std::string sessionKey, std::string ed25519Key)
 
bool reuseOrCreateOutboundGroupSession (RandomData random, Timestamp timeMs, std::string roomId, std::optional< MegOlmSessionRotateDesc > desc)
 

Public Attributes

ByteArray accountData
 
OlmAccount * account
 
immer::map< std::string, int > uploadedOneTimeKeysCount
 
int numUnpublishedKeys {0}
 
std::unordered_map< std::string, SessionknownSessions
 
std::unordered_map< KeyOfGroupSession, InboundGroupSessioninboundGroupSessions
 
std::unordered_map< std::string, OutboundGroupSessionoutboundGroupSessions
 
ByteArray utilityData
 
OlmUtility * utility
 
bool valid {true}
 

Constructor & Destructor Documentation

◆ CryptoPrivate() [1/3]

Kazv::CryptoPrivate::CryptoPrivate ( )

◆ CryptoPrivate() [2/3]

Kazv::CryptoPrivate::CryptoPrivate ( RandomTag  ,
RandomData  data 
)

◆ CryptoPrivate() [3/3]

Kazv::CryptoPrivate::CryptoPrivate ( const CryptoPrivate that)

◆ ~CryptoPrivate()

Kazv::CryptoPrivate::~CryptoPrivate ( )

Member Function Documentation

◆ checkError()

std::size_t Kazv::CryptoPrivate::checkError ( std::size_t  code) const

◆ checkUtilError()

std::size_t Kazv::CryptoPrivate::checkUtilError ( std::size_t  code) const

◆ createInboundGroupSession()

bool Kazv::CryptoPrivate::createInboundGroupSession ( KeyOfGroupSession  k,
std::string  sessionKey,
std::string  ed25519Key 
)

◆ createInboundSession()

bool Kazv::CryptoPrivate::createInboundSession ( std::string  theirCurve25519IdentityKey,
std::string  message 
)

returns whether the session is successfully established

◆ curve25519IdentityKey()

std::string Kazv::CryptoPrivate::curve25519IdentityKey ( ) const

◆ decryptMegOlm()

MaybeString Kazv::CryptoPrivate::decryptMegOlm ( nlohmann::json  eventJson)

◆ decryptOlm()

MaybeString Kazv::CryptoPrivate::decryptOlm ( nlohmann::json  content)

◆ ed25519IdentityKey()

std::string Kazv::CryptoPrivate::ed25519IdentityKey ( ) const

◆ identityKeys()

ByteArray Kazv::CryptoPrivate::identityKeys ( ) const

◆ pickle()

std::string Kazv::CryptoPrivate::pickle ( ) const

◆ reuseOrCreateOutboundGroupSession()

bool Kazv::CryptoPrivate::reuseOrCreateOutboundGroupSession ( RandomData  random,
Timestamp  timeMs,
std::string  roomId,
std::optional< MegOlmSessionRotateDesc desc 
)

◆ unpickle()

void Kazv::CryptoPrivate::unpickle ( std::string  data)

Member Data Documentation

◆ account

OlmAccount* Kazv::CryptoPrivate::account

◆ accountData

ByteArray Kazv::CryptoPrivate::accountData

◆ inboundGroupSessions

std::unordered_map<KeyOfGroupSession, InboundGroupSession> Kazv::CryptoPrivate::inboundGroupSessions

◆ knownSessions

std::unordered_map<std::string , Session> Kazv::CryptoPrivate::knownSessions

◆ numUnpublishedKeys

int Kazv::CryptoPrivate::numUnpublishedKeys {0}

◆ outboundGroupSessions

std::unordered_map<std::string , OutboundGroupSession> Kazv::CryptoPrivate::outboundGroupSessions

◆ uploadedOneTimeKeysCount

immer::map<std::string , int> Kazv::CryptoPrivate::uploadedOneTimeKeysCount

◆ utility

OlmUtility* Kazv::CryptoPrivate::utility

◆ utilityData

ByteArray Kazv::CryptoPrivate::utilityData

◆ valid

bool Kazv::CryptoPrivate::valid {true}

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