Class cryptix.pgp.CRC
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.CRC

java.lang.Object
   |
   +----cryptix.pgp.CRC

public final class CRC
extends Object
This class performs the CRC check as required by pgp base64 Encoded packets.

Copyright © 1995, 1996, 1997 Systemics Ltd on behalf of the Cryptix Development Team. All rights reserved.


Variable Index

 o ACCUM_INIT

Constructor Index

 o CRC()

Method Index

 o add(byte[])
This adds the contents of the buffer to the CRC.
 o checksum(byte[])
 o checksum(int, byte[])
 o crc()
This adds the contents of the buffer to the CRC.

Variables

 o ACCUM_INIT
  public final static int ACCUM_INIT

Constructors

 o CRC
  public CRC()

Methods

 o checksum
  public static int checksum(byte buf[])
 o checksum
  public static int checksum(int accum,
                             byte buf[])
 o add
  public final void add(byte buf[])
This adds the contents of the buffer to the CRC.
Parameters:
buf - the buffer to add.
 o crc
  public final int crc()
This adds the contents of the buffer to the CRC.
Returns:
the CRC value so far.

All Packages  Class Hierarchy  This Package  Previous  Next  Index