LLVM: llvm::SHA256 Class Reference (original) (raw)

#include "[llvm/Support/SHA256.h](SHA256%5F8h%5Fsource.html)"

Public Member Functions
SHA256 ()
LLVM_ABI void init ()
Reinitialize the internal state.
LLVM_ABI void update (ArrayRef< uint8_t > Data)
Digest more data.
LLVM_ABI void update (StringRef Str)
Digest more data.
LLVM_ABI std::array< uint8_t, 32 > final ()
Return the current raw 256-bits SHA256 for the digested data since the last call to init().
LLVM_ABI std::array< uint8_t, 32 > result ()
Return the current raw 256-bits SHA256 for the digested data since the last call to init().

Definition at line 34 of file SHA256.h.

llvm::SHA256::SHA256 ( ) inlineexplicit

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()

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]

update() [2/2]

[union]

union { ... } llvm::SHA256::Buffer

BufferOffset

ByteCount

C

uint8_t llvm::SHA256::C[BLOCK_LENGTH]

L

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: