APIdia Launch Partner
Top Fields Constructors Methods
sun.security.krb5.internal.crypto

public final Class crc32

extends MessageDigestSpi
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
java.security.MessageDigestSpi, .DigestException

Field Summary

Modifier and TypeField and Description
private static final int
private static int[]
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
byte2crc32(byte[] data)

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

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

public static int
byte2crc32sum(byte[] data)

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

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

public Object
clone()

Overrides java.security.MessageDigestSpi.clone.

Returns a clone if the implementation is cloneable.

protected byte[]
engineDigest()

Implements abstract java.security.MessageDigestSpi.engineDigest.

Completes the hash computation by performing final operations such as padding.

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

Overrides java.security.MessageDigestSpi.engineDigest.

Completes the hash computation by performing final operations such as padding.

protected int
protected void
engineReset()

Implements abstract java.security.MessageDigestSpi.engineReset.

Resets the digest for further use.

protected synchronized void
engineUpdate(byte b)

Implements abstract java.security.MessageDigestSpi.engineUpdate.

Update adds the passed byte to the digested data.

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

Implements abstract java.security.MessageDigestSpi.engineUpdate.

Update adds the selected part of an array of bytes to the digest.

public void
init()

Initialize the CRC32 information

public static int
int2crc32(int b)

public static byte[]
int2quad(long input)

public static void
private void
processData(byte[] data, int off, int len)

Inherited from java.security.MessageDigestSpi:
engineUpdate

Field Detail

CRC32_LENGTHback to summary
private static final int CRC32_LENGTH
crc32Tableback to summary
private static int[] crc32Table
seedback to summary
private int seed

Constructor Detail

crc32back to summary
public crc32()

Method Detail

byte2crc32back to summary
public static int byte2crc32(byte[] data)
byte2crc32sumback to summary
public static int byte2crc32sum(int seed, byte[] data, int size)
byte2crc32sumback to summary
public static int byte2crc32sum(int seed, byte[] data)
byte2crc32sumback to summary
public static int byte2crc32sum(byte[] data)
byte2crc32sum_bytesback to summary
public static byte[] byte2crc32sum_bytes(byte[] data)
byte2crc32sum_bytesback to summary
public static byte[] byte2crc32sum_bytes(byte[] data, int size)
cloneback to summary
public Object clone()

Overrides java.security.MessageDigestSpi.clone.

Doc from java.security.MessageDigestSpi.clone.

Returns a clone if the implementation is cloneable.

engineDigestback to summary
protected byte[] engineDigest()

Implements abstract java.security.MessageDigestSpi.engineDigest.

Doc from java.security.MessageDigestSpi.engineDigest.

Completes the hash computation by performing final operations such as padding. Once engineDigest has been called, the engine should be reset (see engineReset). Resetting is the responsibility of the engine implementor.

engineDigestback to summary
protected int engineDigest(byte[] buf, int offset, int len) throws DigestException

Overrides java.security.MessageDigestSpi.engineDigest.

Doc from java.security.MessageDigestSpi.engineDigest.

Completes the hash computation by performing final operations such as padding. Once engineDigest has been called, the engine should be reset (see engineReset). Resetting is the responsibility of the engine implementor. This method should be abstract, but we leave it concrete for binary compatibility. Knowledgeable providers should override this method.

Exceptions
DigestException:
if an error occurs.
engineGetDigestLengthback to summary
protected int engineGetDigestLength()

Overrides java.security.MessageDigestSpi.engineGetDigestLength.

Return the digest length in bytes

engineResetback to summary
protected void engineReset()

Implements abstract java.security.MessageDigestSpi.engineReset.

Doc from java.security.MessageDigestSpi.engineReset.

Resets the digest for further use.

engineUpdateback to summary
protected synchronized void engineUpdate(byte b)

Implements abstract java.security.MessageDigestSpi.engineUpdate.

Update adds the passed byte to the digested data.

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

Implements abstract java.security.MessageDigestSpi.engineUpdate.

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.

initback to summary
public void init()

Initialize the CRC32 information

int2crc32back to summary
public static int int2crc32(int b)
int2quadback to summary
public static byte[] int2quad(long input)
printcrc32Tableback to summary
public static void printcrc32Table()
processDataback to summary
private void processData(byte[] data, int off, int len)