Functions
vul_checksum.h File Reference

Contains function for calculating checksum. More...

#include <vxl_config.h>

Go to the source code of this file.

Functions

template<class IT >
vxl_uint_32 vul_checksum_crc32c (IT begin, IT end)
 Caluclate the recommended CRC32C checksum. More...
 
template<class IT >
vxl_uint_32 vul_checksum_crc32 (IT begin, IT end)
 Caluclate the popular CRC32 checksum as used by SATA, MPEG-2, PKZIP, Gzip, Bzip2. More...
 

Detailed Description

Contains function for calculating checksum.

Author
Ian Scott, Imorphics.

Definition in file vul_checksum.h.

Function Documentation

◆ vul_checksum_crc32()

template<class IT >
vxl_uint_32 vul_checksum_crc32 ( IT  begin,
IT  end 
)

Caluclate the popular CRC32 checksum as used by SATA, MPEG-2, PKZIP, Gzip, Bzip2.

Parameters
begin,endThe sequence of chars to be checksummed.
Note
that this checksum is not cryptographically secure - it is easy to find collisions with the original data.

Definition at line 113 of file vul_checksum.h.

◆ vul_checksum_crc32c()

template<class IT >
vxl_uint_32 vul_checksum_crc32c ( IT  begin,
IT  end 
)

Caluclate the recommended CRC32C checksum.

As used by iSCSI, Btrfs, ext4.

Parameters
begin,endThe sequence of chars to be checksummed.
Note
that this checksum is not cryptographically secure - it is easy to find collisions with the original data.

Definition at line 107 of file vul_checksum.h.