Top Fields Constructors Methods
org.bouncycastle.bcpg

public Class CRC24

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.bcpg.FastCRC24

Field Summary

Modifier and TypeField and Description
protected int
protected static final int
protected static final int

Constructor Summary

AccessConstructor and Description
public
CRC24()

Default, iterative CRC-24 implementation as described in RFC4880.

Method Summary

Modifier and TypeMethod and Description
public int
public void
public void
update(int b)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

crcback to summary
protected int crc
CRC24_INITback to summary
protected static final int CRC24_INIT
CRC24_POLYback to summary
protected static final int CRC24_POLY

Constructor Detail

CRC24back to summary
public CRC24()

Default, iterative CRC-24 implementation as described in RFC4880. This implementation mimics the use of a feedback shift register in software.

See Also
RFC4880 §6.1. An Implementation of the CRC-24 in "C"

Method Detail

getValueback to summary
public int getValue()
resetback to summary
public void reset()
updateback to summary
public void update(int b)