15#ifndef LLVM_SUPPORT_SHA1_H
16#define LLVM_SUPPORT_SHA1_H
43 std::array<uint8_t, 20>
final();
49 std::array<uint8_t, 20>
result();
57 enum { BLOCK_LENGTH = 64 };
58 enum { HASH_LENGTH = 20 };
63 uint8_t
C[BLOCK_LENGTH];
72 void writebyte(uint8_t data);
74 void addUncounted(uint8_t data);
77 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),...
A class that wrap the SHA1 algorithm.
void update(ArrayRef< uint8_t > Data)
Digest more data.
static std::array< uint8_t, 20 > hash(ArrayRef< uint8_t > Data)
Returns a raw 160-bit SHA1 hash for the given data.
std::array< uint8_t, 20 > result()
Return the current raw 160-bits SHA1 for the digested data since the last call to init().
void init()
Reinitialize the internal state.
uint32_t State[HASH_LENGTH/4]
union llvm::SHA1::@416::@417 Buffer
uint32_t L[BLOCK_LENGTH/4]
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 >