22#ifndef LLVM_SUPPORT_SHA256_H
23#define LLVM_SUPPORT_SHA256_H
50 std::array<uint8_t, 32>
final();
56 std::array<uint8_t, 32>
result();
64 enum { BLOCK_LENGTH = 64 };
65 enum { HASH_LENGTH = 32 };
70 uint8_t
C[BLOCK_LENGTH];
79 void writebyte(uint8_t data);
81 void addUncounted(uint8_t data);
84 void final(std::array<
uint32_t, HASH_LENGTH / 4> &HashResult);
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
void init()
Reinitialize the internal state.
uint32_t State[HASH_LENGTH/4]
static std::array< uint8_t, 32 > hash(ArrayRef< uint8_t > Data)
Returns a raw 256-bit SHA256 hash for the given data.
void update(ArrayRef< uint8_t > Data)
Digest more data.
std::array< uint8_t, 32 > result()
Return the current raw 256-bits SHA256 for the digested data since the last call to init().
uint32_t L[BLOCK_LENGTH/4]
union llvm::SHA256::@420::@421 Buffer
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
ArrayRef(const T &OneElt) -> ArrayRef< T >