Acme.Crypto.CryptoUtils Class Reference

Inheritance diagram for Acme.Crypto.CryptoUtils:

Acme.Crypto.Cipher Acme.Crypto.Hash Acme.Crypto.BlockCipher Acme.Crypto.StreamCipher Acme.Crypto.Crc16Hash Acme.Crypto.Crc32Hash Acme.Crypto.ShaHash Acme.Crypto.BlowfishCipher Acme.Crypto.CbcBlockCipher Acme.Crypto.IdeaCipher Acme.Crypto.NullCipher List of all members.

Detailed Description

Some cryptography utilities.

Definition at line 44 of file CryptoUtils.java.

Static Public Member Functions

static void zeroBlock (byte[] block, int off, int len)
 Utility routine to fill a block with zeros.
static void zeroBlock (byte[] block)
 Utility routine to fill a block with zeros.
static void randomBlock (byte[] block, int off, int len)
 Utility routine to fill a block with random bytes.
static void randomBlock (byte[] block)
 Utility routine to fill a block with random bytes.
static void xorBlock (byte[] a, int aOff, byte[] b, int bOff, byte[] dst, int dstOff, int len)
 Utility routine to XOR two blocks.
static void xorBlock (byte[] a, byte[] b, byte[] dst)
 Utility routine to XOR two blocks.
static void copyBlock (byte[] src, int srcOff, byte[] dst, int dstOff, int len)
 Utility routine to copy one block to another.
static void copyBlock (byte[] src, byte[] dst)
 Utility routine to copy one block to another.
static boolean equalsBlock (byte[] a, int aOff, byte[] b, int bOff, int len)
 Utility routine to check two blocks for equality.
static boolean equalsBlock (byte[] a, byte[] b)
 Utility routine to check two blocks for equality.
static void fillBlock (byte[] block, int blockOff, byte b, int len)
 Utility routine fill a block with a given byte.
static void fillBlock (byte[] block, byte b)
 Utility routine fill a block with a given byte.
static void squashBytesToInts (byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
 Squash bytes down to ints.
static void spreadIntsToBytes (int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
 Spread ints into bytes.
static void squashBytesToIntsLittle (byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
 Squash bytes down to ints, little-endian.
static void spreadIntsToBytesLittle (int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
 Spread ints into bytes, little-endian.
static void squashBytesToShorts (byte[] inBytes, int inOff, int[] outShorts, int outOff, int shortLen)
 Squash bytes down to shorts.
static void spreadShortsToBytes (int[] inShorts, int inOff, byte[] outBytes, int outOff, int shortLen)
 Spread shorts into bytes.
static void squashBytesToShortsLittle (byte[] inBytes, int inOff, int[] outShorts, int outOff, int shortLen)
 Squash bytes down to shorts, little endian.
static void spreadShortsToBytesLittle (int[] inShorts, int inOff, byte[] outBytes, int outOff, int shortLen)
 Spread shorts into bytes, little endian.
static String toStringBlock (byte[] block, int off, int len)
 Convert a block to a String representation.
static String toStringBlock (byte[] block)
 Convert a block to a String representation.


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:32 2006 for OpenMobileIS by  doxygen 1.5.1-p1