LLVM: include/llvm/Support/SHA256.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

16

17

18

19

20

21

22#ifndef LLVM_SUPPORT_SHA256_H

23#define LLVM_SUPPORT_SHA256_H

24

26#include

27#include

28

29namespace llvm {

30

31template class ArrayRef;

33

35public:

37

38

40

41

43

44

46

47

48

49

50

51 LLVM_ABI std::array<uint8_t, 32> final();

52

53

54

55

56

58

59

61

62private:

63

64

65 enum { BLOCK_LENGTH = 64 };

66 enum { HASH_LENGTH = 32 };

67

68

69 struct {

70 union {

77 } InternalState;

78

79

83 void pad();

84

85 void final(std::array<uint32_t, HASH_LENGTH / 4> &HashResult);

86};

87

88}

89

90#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),...

LLVM_ABI void init()

Reinitialize the internal state.

uint32_t State[HASH_LENGTH/4]

Definition SHA256.h:74

uint8_t C[BLOCK_LENGTH]

Definition SHA256.h:71

SHA256()

Definition SHA256.h:36

static LLVM_ABI std::array< uint8_t, 32 > hash(ArrayRef< uint8_t > Data)

Returns a raw 256-bit SHA256 hash for the given data.

union llvm::SHA256::@107052163344123117275370062332227007065142304261::@243062157356327264273052105121363310106131102316 Buffer

LLVM_ABI void update(ArrayRef< uint8_t > Data)

Digest more data.

LLVM_ABI std::array< uint8_t, 32 > result()

Return the current raw 256-bits SHA256 for the digested data since the last call to init().

uint8_t BufferOffset

Definition SHA256.h:76

uint32_t ByteCount

Definition SHA256.h:75

uint32_t L[BLOCK_LENGTH/4]

Definition SHA256.h:72

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