llarp::EncryptedFrame

Inherits from llarp::Encrypted< EncryptedFrameSize >

Public Functions

Name
EncryptedFrame()
EncryptedFrame(size_t sz)
void Resize(size_t sz)
bool DoEncrypt(const SharedSecret & shared, bool noDH =false)
bool DecryptInPlace(const SecretKey & seckey)
bool DoDecrypt(const SharedSecret & shared)
bool EncryptInPlace(const SecretKey & seckey, const PubKey & other)

Additional inherited members

Public Functions inherited from llarp::Encrypted< EncryptedFrameSize >

Name
Encrypted(Encrypted && other)
Encrypted(const Encrypted & other)
Encrypted()
void Clear()
Encrypted(const byte_t * buf, size_t sz)
Encrypted(size_t sz)
bool BEncode(llarp_buffer_t * buf) const
bool operator==(const Encrypted & other) const
bool operator!=(const Encrypted & other) const
Encrypted & operator=(const Encrypted & other)
Encrypted & operator=(const llarp_buffer_t & buf)
void Fill(byte_t fill)
void Randomize()
bool BDecode(llarp_buffer_t * buf)
llarp_buffer_t * Buffer()
size_t size()
size_t size() const
byte_t * data()
const byte_t * data() const

Protected Functions inherited from llarp::Encrypted< EncryptedFrameSize >

Name
void UpdateBuffer()

Protected Attributes inherited from llarp::Encrypted< EncryptedFrameSize >

Name
AlignedBuffer< bufsz > _buf
size_t _sz
llarp_buffer_t m_Buffer

Public Functions Documentation

function EncryptedFrame

inline EncryptedFrame()

function EncryptedFrame

inline EncryptedFrame(
    size_t sz
)

function Resize

inline void Resize(
    size_t sz
)

function DoEncrypt

bool DoEncrypt(
    const SharedSecret & shared,
    bool noDH =false
)

function DecryptInPlace

bool DecryptInPlace(
    const SecretKey & seckey
)

function DoDecrypt

bool DoDecrypt(
    const SharedSecret & shared
)

function EncryptInPlace

bool EncryptInPlace(
    const SecretKey & seckey,
    const PubKey & other
)

Updated on 2026-01-10 at 22:49:45 +0000