All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.CRC

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

public class CRC
extends Object
This class calculates the CRC check as required by PGP base64 encoded packets.

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

$Revision: 1.1.1.1 $

Author:
unattributed

Variable Index

 o ACCUM_INIT

Constructor Index

 o CRC()

Method Index

 o add(byte[])
Adds the contents of the buffer to the CRC.
 o checksum(byte[])
 o checksum(int, byte[])
 o crc()
Returns the current value of the CRC.

Variables

 o ACCUM_INIT
 public static final 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[])
Adds the contents of the buffer to the CRC.

Parameters:
buf - the buffer to add.
 o crc
 public final int crc()
Returns the current value of the CRC.

Returns:
the CRC value so far.

All Packages  Class Hierarchy  This Package  Previous  Next  Index