Audacity 3.2.0
|
#include <SHA256.h>
Public Member Functions | |
SHA256 () | |
SHA256 (const SHA256 &)=delete | |
SHA256 (SHA256 &&)=delete | |
SHA256 & | operator= (const SHA256 &)=delete |
SHA256 & | operator= (SHA256 &&)=delete |
void | Update (const void *data, std::size_t size) |
void | Update (const char *zString) |
template<typename T > | |
void | Update (const T &data) |
std::string | Finalize () |
void | Reset () |
Static Public Attributes | |
static constexpr std::size_t | HASH_SIZE = 32 |
static constexpr std::size_t | BLOCK_SIZE = 64 |
Private Attributes | |
uint64_t | mBitLength |
uint32_t | mState [8] |
uint8_t | mBuffer [BLOCK_SIZE] |
uint32_t | mBufferLength |
crypto::SHA256::SHA256 | ( | ) |
Definition at line 93 of file SHA256.cpp.
References Reset().
|
delete |
|
delete |
std::string crypto::SHA256::Finalize | ( | ) |
Definition at line 127 of file SHA256.cpp.
References BLOCK_SIZE, HASH_SIZE, mBitLength, mBuffer, mBufferLength, mState, Reset(), and crypto::anonymous_namespace{SHA256.cpp}::sha256_transform().
Referenced by crypto::sha256().
void crypto::SHA256::Reset | ( | ) |
Definition at line 190 of file SHA256.cpp.
References mBitLength, mBuffer, mBufferLength, and mState.
Referenced by Finalize(), and SHA256().
void crypto::SHA256::Update | ( | const char * | zString | ) |
Definition at line 122 of file SHA256.cpp.
References Update().
|
inline |
void crypto::SHA256::Update | ( | const void * | data, |
std::size_t | size | ||
) |
Definition at line 98 of file SHA256.cpp.
References BLOCK_SIZE, mBitLength, mBuffer, mBufferLength, mState, crypto::anonymous_namespace{SHA256.cpp}::sha256_transform(), and size.
Referenced by crypto::sha256(), and Update().
|
staticconstexpr |
Definition at line 20 of file SHA256.h.
Referenced by Finalize(), crypto::anonymous_namespace{SHA256.cpp}::sha256_transform(), and Update().
|
staticconstexpr |
Definition at line 19 of file SHA256.h.
Referenced by Finalize().
|
private |
Definition at line 43 of file SHA256.h.
Referenced by Finalize(), Reset(), and Update().
|
private |
Definition at line 45 of file SHA256.h.
Referenced by Finalize(), Reset(), and Update().
|
private |
Definition at line 46 of file SHA256.h.
Referenced by Finalize(), Reset(), and Update().
|
private |
Definition at line 44 of file SHA256.h.
Referenced by Finalize(), Reset(), and Update().