Bouncy Castle Cryptography Library 1.79

org.bouncycastle.bcpg
Class CRC24

java.lang.Object
  |
  +--org.bouncycastle.bcpg.CRC24
Direct Known Subclasses:
FastCRC24

public class CRC24
extends java.lang.Object


Field Summary
protected  int crc
           
protected static int CRC24_INIT
           
protected static int CRC24_POLY
           
 
Constructor Summary
CRC24()
          Default, iterative CRC-24 implementation as described in RFC4880.
 
Method Summary
 int getValue()
           
 void reset()
           
 void update(int b)
           
 void update3(byte[] buf, int off)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRC24_INIT

protected static final int CRC24_INIT

CRC24_POLY

protected static final int CRC24_POLY

crc

protected int crc
Constructor Detail

CRC24

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

update

public void update(int b)

update3

public void update3(byte[] buf,
                    int off)

getValue

public int getValue()

reset

public void reset()

Bouncy Castle Cryptography Library 1.79