yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::util::anonymous_namespace{rom_hash.cc} Namespace Reference

Classes

struct  Sha1State
 

Functions

uint32_t CalculateLegacyCrc32 (const uint8_t *data, size_t size)
 
uint32_t LeftRotate (uint32_t val, unsigned bits)
 
void Sha1ProcessBlock (Sha1State &state, const uint8_t block[64])
 
void Sha1Init (Sha1State &state)
 
void Sha1Update (Sha1State &state, const uint8_t *data, size_t len)
 
void Sha1Final (Sha1State &state, uint8_t digest[20])
 

Variables

constexpr uint32_t kLegacyCrc32Table [256]
 

Function Documentation

◆ CalculateLegacyCrc32()

uint32_t yaze::util::anonymous_namespace{rom_hash.cc}::CalculateLegacyCrc32 ( const uint8_t * data,
size_t size )

Definition at line 66 of file rom_hash.cc.

References CalculateLegacyCrc32(), and kLegacyCrc32Table.

Referenced by CalculateLegacyCrc32().

Here is the call graph for this function:

◆ LeftRotate()

uint32_t yaze::util::anonymous_namespace{rom_hash.cc}::LeftRotate ( uint32_t val,
unsigned bits )
inline

Definition at line 129 of file rom_hash.cc.

References LeftRotate().

Referenced by LeftRotate(), and Sha1ProcessBlock().

Here is the call graph for this function:

◆ Sha1ProcessBlock()

void yaze::util::anonymous_namespace{rom_hash.cc}::Sha1ProcessBlock ( Sha1State & state,
const uint8_t block[64] )

Definition at line 133 of file rom_hash.cc.

References yaze::util::anonymous_namespace{rom_hash.cc}::Sha1State::h, LeftRotate(), and Sha1ProcessBlock().

Referenced by Sha1ProcessBlock(), and Sha1Update().

Here is the call graph for this function:

◆ Sha1Init()

void yaze::util::anonymous_namespace{rom_hash.cc}::Sha1Init ( Sha1State & state)

◆ Sha1Update()

void yaze::util::anonymous_namespace{rom_hash.cc}::Sha1Update ( Sha1State & state,
const uint8_t * data,
size_t len )

◆ Sha1Final()

void yaze::util::anonymous_namespace{rom_hash.cc}::Sha1Final ( Sha1State & state,
uint8_t digest[20] )

Variable Documentation

◆ kLegacyCrc32Table

constexpr uint32_t yaze::util::anonymous_namespace{rom_hash.cc}::kLegacyCrc32Table[256]
constexpr

Definition at line 21 of file rom_hash.cc.

Referenced by CalculateLegacyCrc32().