e-CryptIt Engine - Checksums Xojo Plugin |
|
CRC32 Class
A class to calculate CRC32 checksums. On strings, bytes or streams.
The class supports the following CRC32 variations:
GENERIC
BZIP2
MPEG2
POSIX
JAMCRC
C
D
Q
XFER
Constructors
CRC32 | Constructor that takes CRC32MethodEnum selector to choose CRC32 variation. |
CRC32 | A constructor to create instance of CRC32 with settings for custom variation. |
Properties
Methods
Final | Gets the final checksum from the CRC. |
shared PluginVersion | Returns the version number of the plugin. |
Reset | Resets the CRC stream. |
Update | Updates the CRC checksum with a string. |
UpdateByte | Updates the CRC checksum with a single byte |
UpdateMemoryBlock | Updates the CRC checksum with a memory block taking all bytes from the block. |
UpdateMemoryBlock | Updates the CRC checksum with a memory block taking selected bytes from the block. |
Enumerations
CRC32MethodEnum | A enum to supply for the CRC32 constructor to choose CRC132 variation. |
Examples
Dim crc as CRC32 = new CRC32(CRC32.CRC32MethodEnum.CRC32_GENERIC)
Dim value32 as UInt32
Dim testData as String = "123456789"
testData = testData.ConvertEncoding(Encodings.ASCII)
value32 = crc.Update(testData, crc.ReferenceInitValue)
MsgBox Hex(crc.Final(value32))
Supported Platforms:
MacOS X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARMUnsupported Platforms:
MacOS X Carbon