LLVM: include/llvm/Support/SHA1.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15#ifndef LLVM_SUPPORT_SHA1_H
16#define LLVM_SUPPORT_SHA1_H
17
19#include
20#include
21
22namespace llvm {
23template class ArrayRef;
25
26
28public:
30
31
33
34
36
37
39
40
41
42
43
44 LLVM_ABI std::array<uint8_t, 20> final();
45
46
47
48
49
51
52
54
55private:
56
57
58 enum { BLOCK_LENGTH = 64 };
59 enum { HASH_LENGTH = 20 };
60
61
62 struct {
63 union {
70 } InternalState;
71
72
76 void pad();
77
78 void final(std::array<uint32_t, HASH_LENGTH / 4> &HashResult);
79};
80
81}
82
83#endif
uint64_t hashBlock(const MachineBasicBlock &MBB, bool HashOperands)
static void pad(raw_fd_ostream &OS)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
SHA1()
Definition SHA1.h:29
union llvm::SHA1::@113042342312233010146102245347120240004213304317::@152136117046023103274336141206211006363021102331 Buffer
LLVM_ABI void update(ArrayRef< uint8_t > Data)
Digest more data.
uint8_t C[BLOCK_LENGTH]
Definition SHA1.h:64
static LLVM_ABI std::array< uint8_t, 20 > hash(ArrayRef< uint8_t > Data)
Returns a raw 160-bit SHA1 hash for the given data.
LLVM_ABI std::array< uint8_t, 20 > result()
Return the current raw 160-bits SHA1 for the digested data since the last call to init().
uint32_t ByteCount
Definition SHA1.h:68
LLVM_ABI void init()
Reinitialize the internal state.
uint32_t State[HASH_LENGTH/4]
Definition SHA1.h:67
uint32_t L[BLOCK_LENGTH/4]
Definition SHA1.h:65
uint8_t BufferOffset
Definition SHA1.h:69
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
FunctionAddr VTableAddr uintptr_t uintptr_t Data