#include "llvm/Support/SHA256.h"
|
| SHA256 () |
|
void | init () |
| Reinitialize the internal state.
|
|
void | update (ArrayRef< uint8_t > Data) |
| Digest more data.
|
|
void | update (StringRef Str) |
| Digest more data.
|
|
std::array< uint8_t, 32 > | final () |
| Return the current raw 256-bits SHA256 for the digested data since the last call to init().
|
|
std::array< uint8_t, 32 > | result () |
| Return the current raw 256-bits SHA256 for the digested data since the last call to init().
|
|
|
static std::array< uint8_t, 32 > | hash (ArrayRef< uint8_t > Data) |
| Returns a raw 256-bit SHA256 hash for the given data.
|
|
Definition at line 33 of file SHA256.h.
◆ SHA256()
◆ final()
std::array< uint8_t, 32 > llvm::SHA256::final |
( |
| ) |
|
Return the current raw 256-bits SHA256 for the digested data since the last call to init().
This call will add data to the internal state and as such is not suited for getting an intermediate result (see result()).
Definition at line 258 of file SHA256.cpp.
Referenced by hash().
◆ hash()
std::array< uint8_t, 32 > llvm::SHA256::hash |
( |
ArrayRef< uint8_t > |
Data | ) |
|
|
static |
◆ init()
void llvm::SHA256::init |
( |
| ) |
|
◆ result()
std::array< uint8_t, 32 > llvm::SHA256::result |
( |
| ) |
|
Return the current raw 256-bits SHA256 for the digested data since the last call to init().
This is suitable for getting the SHA256 at any time without invalidating the internal state so that more calls can be made into update.
Definition at line 268 of file SHA256.cpp.
◆ update() [1/2]
void llvm::SHA256::update |
( |
ArrayRef< uint8_t > |
Data | ) |
|
◆ update() [2/2]
union { ... } llvm::SHA256::Buffer |
◆ BufferOffset
uint8_t llvm::SHA256::BufferOffset |
◆ ByteCount
uint8_t llvm::SHA256::C[BLOCK_LENGTH] |
uint32_t llvm::SHA256::L[BLOCK_LENGTH/4] |
◆ State
uint32_t llvm::SHA256::State[HASH_LENGTH/4] |
The documentation for this class was generated from the following files: