public final class

crc32

extends MessageDigestSpi
implements Cloneable
java.lang.Object
   ↳ java.security.MessageDigestSpi
     ↳ sun.security.mule.krb5.internal.crypto.crc32

Summary

Constants
int CRC32_LENGTH
Fields
private static boolean DEBUG
private static int[] crc32Table
private int seed
[Expand]
Inherited Fields
From class java.security.MessageDigestSpi
Public Constructors
crc32()
Public Methods
static int byte2crc32(byte[] data)
static int byte2crc32sum(byte[] data)
static int byte2crc32sum(int seed, byte[] data, int size)
static int byte2crc32sum(int seed, byte[] data)
static byte[] byte2crc32sum_bytes(byte[] data, int size)
static byte[] byte2crc32sum_bytes(byte[] data)
Object clone()
void init()
Initialize the CRC32 information
static int int2crc32(int b)
static byte[] int2quad(long input)
static void printcrc32Table()
Protected Methods
byte[] engineDigest()
int engineDigest(byte[] buf, int offset, int len)
int engineGetDigestLength()
Return the digest length in bytes
void engineReset()
synchronized void engineUpdate(byte b)
Update adds the passed byte to the digested data.
synchronized void engineUpdate(byte[] input, int offset, int len)
Update adds the selected part of an array of bytes to the digest.
[Expand]
Inherited Methods
From class java.security.MessageDigestSpi
From class java.lang.Object

Constants

private static final int CRC32_LENGTH

Constant Value: 4 (0x00000004)

Fields

private static boolean DEBUG

private static int[] crc32Table

private int seed

Public Constructors

public crc32 ()

Public Methods

public static int byte2crc32 (byte[] data)

Parameters
data

public static int byte2crc32sum (byte[] data)

Parameters
data

public static int byte2crc32sum (int seed, byte[] data, int size)

Parameters
seed
data
size

public static int byte2crc32sum (int seed, byte[] data)

Parameters
seed
data

public static byte[] byte2crc32sum_bytes (byte[] data, int size)

Parameters
data
size

public static byte[] byte2crc32sum_bytes (byte[] data)

Parameters
data

public Object clone ()

public void init ()

Initialize the CRC32 information

public static int int2crc32 (int b)

Parameters
b

public static byte[] int2quad (long input)

Parameters
input

public static void printcrc32Table ()

Protected Methods

protected byte[] engineDigest ()

protected int engineDigest (byte[] buf, int offset, int len)

Parameters
buf
offset
len
Throws
DigestException

protected int engineGetDigestLength ()

Return the digest length in bytes

protected void engineReset ()

protected synchronized void engineUpdate (byte b)

Update adds the passed byte to the digested data.

Parameters
b

protected synchronized void engineUpdate (byte[] input, int offset, int len)

Update adds the selected part of an array of bytes to the digest. This version is more efficient than the byte-at-a-time version; it avoids data copies and reduces per-byte call overhead.

Parameters
input
offset
len