INNER CODE UNIT · C++
fire_cycle
CYBERGEM777/HIDEAGEM · src/CYCLE_KEY.cpp:338
const uint8_t* fire_cycle = &_key[ KEY_SLICE_SIZE * fire_key_index ];
// Copy current key slice into Fire Key
std::memcpy( _fire_key, fire_cycle, KEY_SLICE_SIZE );
// XOR Fire Key with Key Food
for ( int i = 0; i < KEY_SLICE_SIZE; ++i )
{
_fire_key[i] ^= _key_food[i]; // Feed the fire
}
}
void CycleKey::mem_init()
{
if (b_mem_init)
{
return;