We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I want to checksum each block compressed, I can use the following... (adler-32 used in ewf)
uint32_t Expert_Witness_Compression_CRC( uint8_t *buffer, size_t buffer_size, uint32_t previous_key ) { size_t buffer_iterator = 0; uint32_t lower_word = previous_key & 0xffff; uint32_t upper_word = ( previous_key >> 16 ) & 0xffff;
for( buffer_iterator = 0; buffer_iterator < buffer_size; buffer_iterator++ ) { lower_word += buffer[ buffer_iterator ]; upper_word += lower_word; if( ( buffer_iterator != 0 ) && ( ( buffer_iterator % 0x15b0 == 0 ) || ( buffer_iterator == buffer_size - 1 ) ) ) { lower_word = lower_word % 0xfff1; upper_word = upper_word % 0xfff1; } } return( ( upper_word << 16 ) | lower_word );
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I want to checksum each block compressed, I can use the following... (adler-32 used in ewf)
uint32_t Expert_Witness_Compression_CRC(
uint8_t *buffer,
size_t buffer_size,
uint32_t previous_key )
{
size_t buffer_iterator = 0;
uint32_t lower_word = previous_key & 0xffff;
uint32_t upper_word = ( previous_key >> 16 ) & 0xffff;
}
The text was updated successfully, but these errors were encountered: