UltrafastSecp256k1 3.50.0
Ultra high-performance secp256k1 elliptic curve cryptography library
Loading...
Searching...
No Matches
secp256k1::Bip324Session Class Reference

#include <bip324.hpp>

Public Member Functions

 Bip324Session (bool initiator) noexcept
 
 Bip324Session (bool initiator, const std::uint8_t *privkey) noexcept
 
 ~Bip324Session () noexcept
 
const std::array< std::uint8_t, 64 > & our_ellswift_encoding () const noexcept
 
bool complete_handshake (const std::uint8_t *peer_encoding) noexcept
 
std::vector< std::uint8_t > encrypt (const std::uint8_t *plaintext, std::size_t plaintext_len) noexcept
 
bool decrypt (const std::uint8_t *header, const std::uint8_t *payload_and_tag, std::size_t len, std::vector< std::uint8_t > &plaintext_out) noexcept
 
bool is_established () const noexcept
 
const std::array< std::uint8_t, 32 > & session_id () const noexcept
 

Detailed Description

Definition at line 78 of file bip324.hpp.

Constructor & Destructor Documentation

◆ Bip324Session() [1/2]

secp256k1::Bip324Session::Bip324Session ( bool  initiator)
explicitnoexcept

◆ Bip324Session() [2/2]

secp256k1::Bip324Session::Bip324Session ( bool  initiator,
const std::uint8_t *  privkey 
)
noexcept

◆ ~Bip324Session()

secp256k1::Bip324Session::~Bip324Session ( )
inlinenoexcept

Definition at line 87 of file bip324.hpp.

Member Function Documentation

◆ complete_handshake()

bool secp256k1::Bip324Session::complete_handshake ( const std::uint8_t *  peer_encoding)
noexcept

◆ decrypt()

bool secp256k1::Bip324Session::decrypt ( const std::uint8_t *  header,
const std::uint8_t *  payload_and_tag,
std::size_t  len,
std::vector< std::uint8_t > &  plaintext_out 
)
noexcept

◆ encrypt()

std::vector< std::uint8_t > secp256k1::Bip324Session::encrypt ( const std::uint8_t *  plaintext,
std::size_t  plaintext_len 
)
noexcept

◆ is_established()

bool secp256k1::Bip324Session::is_established ( ) const
inlinenoexcept

Definition at line 119 of file bip324.hpp.

◆ our_ellswift_encoding()

const std::array< std::uint8_t, 64 > & secp256k1::Bip324Session::our_ellswift_encoding ( ) const
inlinenoexcept

Definition at line 94 of file bip324.hpp.

◆ session_id()

const std::array< std::uint8_t, 32 > & secp256k1::Bip324Session::session_id ( ) const
inlinenoexcept

Definition at line 122 of file bip324.hpp.


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