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

#include <sha256.hpp>

Public Types

using digest_type = std::array< std::uint8_t, 32 >
 

Public Member Functions

 SHA256 () noexcept
 
void reset () noexcept
 
void update (const void *data, std::size_t len) noexcept
 
digest_type finalize () noexcept
 

Static Public Member Functions

static digest_type hash (const void *data, std::size_t len) noexcept
 
static digest_type hash256 (const void *data, std::size_t len) noexcept
 

Detailed Description

Definition at line 28 of file sha256.hpp.

Member Typedef Documentation

◆ digest_type

using secp256k1::SHA256::digest_type = std::array<std::uint8_t, 32>

Definition at line 30 of file sha256.hpp.

Constructor & Destructor Documentation

◆ SHA256()

secp256k1::SHA256::SHA256 ( )
inlinenoexcept

Definition at line 32 of file sha256.hpp.

References reset().

Member Function Documentation

◆ finalize()

◆ hash()

static digest_type secp256k1::SHA256::hash ( const void *  data,
std::size_t  len 
)
inlinestaticnoexcept

◆ hash256()

static digest_type secp256k1::SHA256::hash256 ( const void *  data,
std::size_t  len 
)
inlinestaticnoexcept

Definition at line 127 of file sha256.hpp.

References hash().

Referenced by ufsecp_bip144_txid(), and ufsecp_bip144_wtxid().

◆ reset()

void secp256k1::SHA256::reset ( )
inlinenoexcept

Definition at line 34 of file sha256.hpp.

Referenced by SHA256().

◆ update()


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