CRC-32.
More...
#include <base/security/CRC32.h>
Inherits Object, and PushInterface.
|
static const uint32 | LOOKUP [256] |
|
CRC-32.
Implementation of the 32 bit Cyclic Redundancy Check (CRC-32) algorithm as described by ISO 3309 (also see RFC 1952).
Should only be used for compatibility with legacy systems.
- See also
- Adler32 MD5Sum SHA1
- Version
- 1.0
- Examples
- testsuite/digest.cpp.
◆ CRC32()
Initializes object with an initial checksum of 0.
◆ getTotalSize()
uint64 CRC32::getTotalSize |
( |
| ) |
const |
|
inlinenoexcept |
Returns the total size of the original message.
◆ getValue()
uint32 CRC32::getValue |
( |
| ) |
const |
|
inlinenoexcept |
◆ push()
MemorySize CRC32::push |
( |
const uint8 * |
buffer, |
|
|
MemorySize |
size |
|
) |
| |
|
virtualnoexcept |
Updates the checksum corresponding to the specified data. May be called multiple times.
- Parameters
-
buffer | The buffer holding the data. |
size | The number of octets in the buffer. |
Implements PushInterface.
- Examples
- testsuite/digest.cpp.
◆ pushEnd()
◆ setValue()
void CRC32::setValue |
( |
uint32 |
value | ) |
|
|
inlinenoexcept |
◆ LOOKUP
const uint32 CRC32::LOOKUP[256] |
|
static |
Lookup table of CRCs of all 8-bit messages.