AWS IoT Device SDK C++ v2  1.34.0
AWS IoT Device SDK C++ v2
Functions
Aws::Crt::Checksum Namespace Reference

Functions

uint32_t AWS_CRT_CPP_API ComputeCRC32 (ByteCursor input, uint32_t previousCRC32=0) noexcept
 
uint32_t AWS_CRT_CPP_API ComputeCRC32C (ByteCursor input, uint32_t previousCRC32C=0) noexcept
 
uint64_t AWS_CRT_CPP_API ComputeCRC64NVME (ByteCursor input, uint64_t previousCRC64NVME=0) noexcept
 

Function Documentation

◆ ComputeCRC32()

uint32_t Aws::Crt::Checksum::ComputeCRC32 ( ByteCursor  input,
uint32_t  previousCRC32 = 0 
)
noexcept

The entry point function to perform a CRC32 (Ethernet, gzip) computation. Selects a suitable implementation based on hardware capabilities. Pass previousCRC32 if updating a running checksum.

◆ ComputeCRC32C()

uint32_t Aws::Crt::Checksum::ComputeCRC32C ( ByteCursor  input,
uint32_t  previousCRC32C = 0 
)
noexcept

The entry point function to perform a Castagnoli CRC32c (iSCSI) computation. Selects a suitable implementation based on hardware capabilities. Pass previousCRC32C if updating a running checksum.

◆ ComputeCRC64NVME()

uint64_t Aws::Crt::Checksum::ComputeCRC64NVME ( ByteCursor  input,
uint64_t  previousCRC64NVME = 0 
)
noexcept

The entry point function to perform a CRC64-NVME (a.k.a. CRC64-Rocksoft) computation. Selects a suitable implementation based on hardware capabilities. Pass previousCRC64NVME if updating a running checksum. There are many variants of CRC64 algorithms. This CRC64 variant is bit-reflected (based on the non bit-reflected polynomial 0xad93d23594c93659) and inverts the CRC input and output bits.