e-CryptIt Engine - Checksums Xojo Plugin |
|
CRC8 Class
A class to calculate CRC8 checksums. On strings, bytes or streams.
The class supports the following CRC8 variations:
GENERIC
ITU
ROHC
DARC
I_CODE
J1850
MAXIM
WCDMA
CCITT
EBU
Constructors
CRC8 | Constructor that takes CRC8MethodEnum selector to choose CRC8 variation. |
CRC8 | A constructor to create instance of CRC8 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
CRC8MethodEnum | A enum to supply for the CRC8 constructor to choose CRC8variation. |
Examples
Dim crc as CRC8 = new CRC8(CRC8.CRC8MethodEnum.CRC8_GENERIC)
Dim value8 as UInt8
Dim testData as String = "123456789"
testData = testData.ConvertEncoding(Encodings.ASCII)
value8 = crc.Update(testData, crc.ReferenceInitValue)
MsgBox(testData,Hex(crc.Final(value8))
Supported Platforms:
MacOS X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARMUnsupported Platforms:
MacOS X Carbon