Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <Sha256.hpp>
Public Member Functions | |
Sha256 ()=default | |
Sha256 (const Sha256 &other)=delete | |
Sha256 (Sha256 &&other)=delete | |
~Sha256 ()=default | |
Sha256 & | operator= (const Sha256 &other)=delete |
Sha256 & | operator= (const Sha256 &&other)=delete |
std::vector< std::byte > | digest (void *data, uint32_t length) |
Private Member Functions | |
void | initialise () |
void | update (const uint8_t *data, uint32_t length) |
std::vector< std::byte > | finalise () |
void | transform () |
void | pad () |
void | revert (std::vector< std::byte > &hash) const |
Static Private Member Functions | |
static uint32_t | rotr (uint32_t x, uint32_t n) |
static uint32_t | choose (uint32_t e, uint32_t f, uint32_t g) |
static uint32_t | majority (uint32_t a, uint32_t b, uint32_t c) |
static uint32_t | sig0 (uint32_t x) |
static uint32_t | sig1 (uint32_t x) |
Private Attributes | |
uint8_t | m_data [64] |
uint32_t | m_blockLen |
uint64_t | m_bitLen |
uint32_t | m_state [8] |
Static Private Attributes | |
static constexpr std::array< uint32_t, 64 > | K |
|
default |
|
delete |
|
delete |
|
default |
|
staticprivate |
std::vector< std::byte > Sha256::digest | ( | void * | data, |
uint32_t | length ) |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
staticconstexprprivate |
|
private |
|
private |
|
private |
|
private |