MCPcopy Create free account
hub / github.com/REhints/HexRaysCodeXplorer / SHA1Reset

Function SHA1Reset

src/HexRaysCodeXplorer/Utility.cpp:89–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87void SHA1ProcessMessageBlock(SHA1Context *);
88
89int SHA1Reset(SHA1Context *context)
90{
91 if (!context)
92 return shaNull;
93
94 context->Length_Low = 0;
95 context->Length_High = 0;
96 context->Message_Block_Index = 0;
97 context->Intermediate_Hash[0] = 0x67452301;
98 context->Intermediate_Hash[1] = 0xEFCDAB89;
99 context->Intermediate_Hash[2] = 0x98BADCFE;
100 context->Intermediate_Hash[3] = 0x10325476;
101 context->Intermediate_Hash[4] = 0xC3D2E1F0;
102 context->Computed = 0;
103 context->Corrupted = 0;
104 return shaSuccess;
105}
106
107int SHA1Result(SHA1Context *context, uint8_t Message_Digest[SHA1HashSize])
108{

Callers 1

get_hash_of_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected