Go to the documentation of this file.
22 #ifndef LLVM_SUPPORT_SHA256_H
23 #define LLVM_SUPPORT_SHA256_H
30 template <
typename T>
class ArrayRef;
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);
89 #endif // LLVM_SUPPORT_SHA256_H
This is an optimization pass for GlobalISel generic memory operations.
void init()
Reinitialize the internal state.
(vector float) vec_cmpeq(*A, *B) C
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]
StringRef - Represent a constant reference to a string, i.e.
void update(ArrayRef< uint8_t > Data)
Digest more data.
union llvm::SHA256::@381::@382 Buffer
static std::array< uint8_t, 32 > hash(ArrayRef< uint8_t > Data)
Returns a raw 256-bit SHA256 hash for the given data.
uint32_t State[HASH_LENGTH/4]