sun.security.mule.krb5.internal.crypto
Class crc32

java.lang.Object
  extended by java.security.MessageDigestSpi
      extended by sun.security.mule.krb5.internal.crypto.crc32
All Implemented Interfaces:
Cloneable

public final class crc32
extends MessageDigestSpi
implements Cloneable


Constructor Summary
crc32()
           
 
Method Summary
static int byte2crc32(byte[] data)
           
static byte[] byte2crc32sum_bytes(byte[] data)
           
static byte[] byte2crc32sum_bytes(byte[] data, int size)
           
static int byte2crc32sum(byte[] data)
           
static int byte2crc32sum(int seed, byte[] data)
           
static int byte2crc32sum(int seed, byte[] data, int size)
           
 Object clone()
           
protected  byte[] engineDigest()
           
protected  int engineDigest(byte[] buf, int offset, int len)
           
protected  int engineGetDigestLength()
          Return the digest length in bytes
protected  void engineReset()
           
protected  void engineUpdate(byte b)
          Update adds the passed byte to the digested data.
protected  void engineUpdate(byte[] input, int offset, int len)
          Update adds the selected part of an array of bytes to the digest.
 void init()
          Initialize the CRC32 information
static int int2crc32(int b)
           
static byte[] int2quad(long input)
           
static void printcrc32Table()
           
 
Methods inherited from class java.security.MessageDigestSpi
engineUpdate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

crc32

public crc32()
Method Detail

clone

public Object clone()
Overrides:
clone in class MessageDigestSpi

engineGetDigestLength

protected int engineGetDigestLength()
Return the digest length in bytes

Overrides:
engineGetDigestLength in class MessageDigestSpi

engineDigest

protected byte[] engineDigest()
Specified by:
engineDigest in class MessageDigestSpi

engineDigest

protected int engineDigest(byte[] buf,
                           int offset,
                           int len)
                    throws DigestException
Overrides:
engineDigest in class MessageDigestSpi
Throws:
DigestException

engineUpdate

protected void engineUpdate(byte b)
Update adds the passed byte to the digested data.

Specified by:
engineUpdate in class MessageDigestSpi

engineUpdate

protected 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.

Specified by:
engineUpdate in class MessageDigestSpi

engineReset

protected void engineReset()
Specified by:
engineReset in class MessageDigestSpi

init

public void init()
Initialize the CRC32 information


int2crc32

public static int int2crc32(int b)

printcrc32Table

public static void printcrc32Table()

byte2crc32sum

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

byte2crc32sum

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

byte2crc32sum

public static int byte2crc32sum(byte[] data)

byte2crc32

public static int byte2crc32(byte[] data)

byte2crc32sum_bytes

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

byte2crc32sum_bytes

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

int2quad

public static byte[] int2quad(long input)


Copyright © 2013. All Rights Reserved.