e-CryptIt Engine - Checksums Xojo Plugin |
|
CRC64 Class
A class to calculate CRC64 checksums. On strings, bytes or streams.
The class supports the following CRC64 variations:
GENERIC
Jones
1B
WE
Constructors
CRC64 | Constructor that takes CRC64MethodEnum selector to choose CRC64 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
CRC64MethodEnum | A enum to supply for the CRC64 constructor to choose CRC64 variation. |
Examples
Dim crc as CRC64 = new CRC64(CRC64.CRC64MethodEnum.CRC64_GENERIC)
Dim value64 as UInt64
Dim testData as String = "123456789"
testData = testData.ConvertEncoding(Encodings.ASCII)
value64 = crc.Update(testData, crc.ReferenceInitValue)
MsgBox Hex(crc.Final(value61))
Supported Platforms:
MacOS X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARMUnsupported Platforms:
MacOS X Carbon