Inheritance diagram for Acme.Crypto.CryptoUtils:
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. |