Top Fields Constructors Methods
org.bouncycastle.bcpg

public Class FastCRC24

extends CRC24
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final int[]
Inherited from org.bouncycastle.bcpg.CRC24:
crcCRC24_INITCRC24_POLY

Constructor Summary

AccessConstructor and Description
public
FastCRC24()

Fast CRC-24 implementation using a lookup table to handle multiple bits at a time.

Method Summary

Modifier and TypeMethod and Description
private static int[]

Returns:

lookup table
getTable
()

Lazily init and return the lookup table.

public void
Inherited from org.bouncycastle.bcpg.CRC24:
getValuereset

Field Detail

TABLEback to summary
private static final int[] TABLE

Constructor Detail

FastCRC24back to summary
public FastCRC24()

Fast CRC-24 implementation using a lookup table to handle multiple bits at a time.

Compare: Sarwate, Dilip V. "Computation of cyclic redundancy checks via table look-up."

Method Detail

getTableback to summary
private static int[] getTable()

Lazily init and return the lookup table.

Returns:int[]

lookup table

updateback to summary
public void update(int b)

Overrides org.bouncycastle.bcpg.CRC24.update.