Crc32 class
Contents
- Introduction to the Library
- Basic support package (com.kryptel.bslx)
- Kryptel API Commons package (com.kryptel)
- Cipher package (com.kryptel.cipher)
- Compressor package (com.kryptel.compressor)
- Exceptions package (com.kryptel.exceptions)
- Hash function package (com.kryptel.hash_function)
- MAC function package (com.kryptel.mac)
- Key-related functions (com.kryptel.key)
- Silver Key engine (com.kryptel.silver_key)
- Kryptel encrypted storage (com.kryptel.storage)
Declaration
package com.kryptel.bslx; public final class Crc32 { public void Init() public void Compute(byte[] src, int start, int size) public int Done() public static int BlockCompute(byte[] src, int start, int size) public static int BlockCompute(byte[] src) }
Description
This class implements CRC-32 checksum.
Init
public void Init()
Reset the checksum counter and prepare it for computing a new checksum.
Compute
public void Compute(byte[] src, int start, int size)
Process a next chunk of data.
Done
public int Done()
Finish checksum computing and return the computed checksum.
BlockCompute
public static int BlockCompute(byte[] src, int start, int size) public static int BlockCompute(byte[] src)
These functions are just a shortcut for the Init-Compute-Done sequence.