MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / Result

Method Result

Libraries/unrar/hash.cpp:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106void DataHash::Result(HashValue *Result)
107{
108 Result->Type=HashType;
109 if (HashType==HASH_RAR14)
110 Result->CRC32=CurCRC32;
111 if (HashType==HASH_CRC32)
112 Result->CRC32=CurCRC32^0xffffffff;
113 if (HashType==HASH_BLAKE2)
114 {
115 // Preserve the original context, so we can continue hashing if necessary.
116 blake2sp_state res=*blake2ctx;
117 blake2sp_final(&res,Result->Digest);
118 }
119}
120
121
122uint DataHash::GetCRC32()

Callers 2

ExtractUnixLink30Function · 0.80
CalcFileSumFunction · 0.80

Calls 1

blake2sp_finalFunction · 0.85

Tested by

no test coverage detected