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

#include <bip324.hpp>

Public Member Functions

 Bip324Cipher () noexcept=default
 
 ~Bip324Cipher () noexcept
 
void init (const std::uint8_t *key) noexcept
 
std::vector< std::uint8_t > encrypt (const std::uint8_t *aad, std::size_t aad_len, const std::uint8_t *plaintext, std::size_t plaintext_len) noexcept
 
bool decrypt (const std::uint8_t *aad, std::size_t aad_len, const std::uint8_t *header_enc, const std::uint8_t *contents, std::size_t contents_len, std::vector< std::uint8_t > &plaintext_out) noexcept
 
std::uint64_t packet_counter () const noexcept
 

Detailed Description

Definition at line 36 of file bip324.hpp.

Constructor & Destructor Documentation

◆ Bip324Cipher()

secp256k1::Bip324Cipher::Bip324Cipher ( )
defaultnoexcept

◆ ~Bip324Cipher()

secp256k1::Bip324Cipher::~Bip324Cipher ( )
inlinenoexcept

Definition at line 39 of file bip324.hpp.

Member Function Documentation

◆ decrypt()

bool secp256k1::Bip324Cipher::decrypt ( const std::uint8_t *  aad,
std::size_t  aad_len,
const std::uint8_t *  header_enc,
const std::uint8_t *  contents,
std::size_t  contents_len,
std::vector< std::uint8_t > &  plaintext_out 
)
noexcept

◆ encrypt()

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

◆ init()

void secp256k1::Bip324Cipher::init ( const std::uint8_t *  key)
noexcept

◆ packet_counter()

std::uint64_t secp256k1::Bip324Cipher::packet_counter ( ) const
inlinenoexcept

Definition at line 66 of file bip324.hpp.


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