MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / CalcHash

Method CalcHash

src/core/error.cpp:42–49  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// CalcHash //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

40// CalcHash
41///////////////////////////////////////////////////////////////////////////////
42uint32 eError::CalcHash(const char* name)
43{
44 CRC_INFO crc;
45 crcInit(crc);
46 crcUpdate(crc, (const uint8*)name, strlen(name));
47 crcFinit(crc);
48 return crc.crc;
49}

Callers

nothing calls this directly

Calls 3

crcInitFunction · 0.85
crcUpdateFunction · 0.85
crcFinitFunction · 0.85

Tested by

no test coverage detected