Go to the documentation of this file.
15 #ifndef LLVM_SUPPORT_SHA1_H
16 #define LLVM_SUPPORT_SHA1_H
22 template <
typename T>
class ArrayRef;
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);
This is an optimization pass for GlobalISel generic memory operations.
A class that wrap the SHA1 algorithm.
(vector float) vec_cmpeq(*A, *B) C
std::array< uint8_t, 20 > result()
Return the current raw 160-bits SHA1 for the digested data since the last call to init().
static std::array< uint8_t, 20 > hash(ArrayRef< uint8_t > Data)
Returns a raw 160-bit SHA1 hash for the given data.
uint32_t State[HASH_LENGTH/4]
void init()
Reinitialize the internal state.
void update(ArrayRef< uint8_t > Data)
Digest more data.
StringRef - Represent a constant reference to a string, i.e.
uint32_t L[BLOCK_LENGTH/4]
union llvm::SHA1::@377::@378 Buffer