Index of all Fields and Methods
All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

add(BigNum, BigNum, BigNum). Static method in class java.math.BigNum
add(byte[]). Method in class java.crypt.MessageDigest
Add a byte array to the digest
add(byte[], int, int). Method in class java.crypt.MessageDigest
Add a section of a byte array to the digest
add(String). Method in class java.crypt.MessageDigest
Add the low bytes of a string to the digest (ie.
add(String, int, int). Method in class java.crypt.MessageDigest
Add the low bytes of a string to the digest (ie.
addToDigest(byte[], int, int). Method in class java.crypt.MD5
Add data to the message digest (calls the native code).
addToDigest(byte[], int, int). Method in class java.crypt.MessageDigest
Add the data to the hash.
addToDigest(byte[], int, int). Method in class java.crypt.SHA
Add data to the message digest (calls the native code).

B

BigInteger(). Constructor for class java.math.BigInteger
BigInteger(BigInteger). Constructor for class java.math.BigInteger
BigInteger(byte[]). Constructor for class java.math.BigInteger
BigInteger(String). Constructor for class java.math.BigInteger
BigNum(). Constructor for class java.math.BigNum
bitLength(). Method in class java.math.BigNum
BLOCK_LENGTH. Static variable in class java.crypt.DES
This is the length of a block.
BLOCK_LENGTH. Static variable in class java.crypt.IDEA
This is the length of a block.
BlockCipher(). Constructor for class java.crypt.BlockCipher
blockDecrypt(byte[], int, byte[], int). Method in class java.crypt.BlockCipher
Perform a decryption.
blockDecrypt(byte[], int, byte[], int). Method in class java.crypt.DES
Decrypt a block.
blockDecrypt(byte[], int, byte[], int). Method in class java.crypt.IDEA
Decrypt a block.
blockEncrypt(byte[], int, byte[], int). Method in class java.crypt.BlockCipher
Perform an encryption.
blockEncrypt(byte[], int, byte[], int). Method in class java.crypt.DES
Encrypt a block.
blockEncrypt(byte[], int, byte[], int). Method in class java.crypt.IDEA
Encrypt a block.
blockLength(). Method in class java.crypt.BlockCipher
Return the block length of this cipher.

N.B. the library writer should also implement a public static final int BLOCK_LENGTH for any classes that derive from this one

blockLength(). Method in class java.crypt.DES
Return the block length of this cipher.
blockLength(). Method in class java.crypt.IDEA
Return the block length of this cipher.

C

clone(). Method in class java.math.BigInteger
Creates a clone of the object.
clone(). Method in class java.math.BigNum
Creates a clone of the object.
cmp(BigInteger). Method in class java.math.BigInteger
cmp(BigNum, BigNum). Static method in class java.math.BigNum
copy(BigNum, BigNum). Static method in class java.math.BigNum
copy(Object). Method in class java.math.BigInteger
copy(Object). Method in class java.math.BigNum

D

dec(). Method in class java.math.BigInteger
dec(BigNum). Static method in class java.math.BigNum
decrypt(byte[]). Method in class java.crypt.BlockCipher
Decrypt a block of data.
decrypt(byte[], byte[]). Method in class java.crypt.BlockCipher
Decrypt a block of data.
decrypt(byte[], int, byte[], int). Method in class java.crypt.BlockCipher
Decrypt a block of data.
DES(byte[]). Constructor for class java.crypt.DES
This creates a DES block cipher from a byte array of the correct length.
digest(). Method in class java.crypt.MD5
Returns the digest of the data added and resets the digest.
digest(). Method in class java.crypt.MessageDigest
Obtain the digest

N.B. this resets the digest.

digest(). Method in class java.crypt.SHA
Returns the digest of the data added and resets the digest.
div(BigNum, BigNum, BigNum). Static method in class java.math.BigNum
div(BigNum, BigNum, BigNum, BigNum). Static method in class java.math.BigNum

E

encrypt(byte[]). Method in class java.crypt.BlockCipher
Encrypt a block of data.
encrypt(byte[], byte[]). Method in class java.crypt.BlockCipher
Encrypt a block of data.
encrypt(byte[], int, byte[], int). Method in class java.crypt.BlockCipher
Encrypt a block of data.

F

finalize(). Method in class java.math.BigInteger
Code to perform when this object is garbage collected.
finalize(). Method in class java.math.BigNum
Code to perform when this object is garbage collected.
fromBinary(byte[]). Method in class java.math.BigNum
fromByteArray(byte[]). Method in class java.math.BigInteger
fromString(String). Method in class java.math.BigInteger

H

hash(String, MessageDigest). Static method in class java.crypt.MessageDigest
A convenience function for hashing a string.

eg:

 byte key[] = MessageDigest.hash( passPhrase, new MD5() ); 
HASH_LENGTH. Static variable in class java.crypt.MD5
This is the length of the final hash (in bytes).
HASH_LENGTH. Static variable in class java.crypt.SHA
This is the length of the final hash (in bytes).

I

IDEA(byte[]). Constructor for class java.crypt.IDEA
This creates a Idea block cipher from a byte array of the correct length.
inc(). Method in class java.math.BigInteger
inc(BigNum). Static method in class java.math.BigNum
intoBinary(byte[]). Method in class java.math.BigNum

K

KEY_LENGTH. Static variable in class java.crypt.DES
This is the length of a the user key.
KEY_LENGTH. Static variable in class java.crypt.IDEA
This is the length of a the user key.
keyLength(). Method in class java.crypt.BlockCipher
Return the key length for this cipher.

N.B. the library writer should also implement a public static final int KEY_LENGTH for any classes that derive from this one

keyLength(). Method in class java.crypt.DES
Return the key length for this cipher.
keyLength(). Method in class java.crypt.IDEA
Return the key length of this cipher.

L

length(). Method in class java.math.BigNum
length(). Method in class java.crypt.MD5
Return length of the hash (in bytes).
length(). Method in class java.crypt.MessageDigest
Return the hash length

N.B. It is advisable to add public static final int HASH_LENGTH

length(). Method in class java.crypt.SHA
Return length of the hash (in bytes).

M

MD5(). Constructor for class java.crypt.MD5
The public constructor.
MessageDigest(). Constructor for class java.crypt.MessageDigest
Both protected and abstract, so this class must be derived from in order to be useful.
mod(BigNum, BigNum, BigNum). Static method in class java.math.BigNum
modExp(BigInteger, BigInteger). Method in class java.math.BigInteger
modExp(BigNum, BigNum, BigNum, BigNum). Static method in class java.math.BigNum
modMul(BigNum, BigNum, BigNum, BigNum). Static method in class java.math.BigNum
mul(BigInteger, BigInteger). Method in class java.math.BigInteger
mul(BigNum, BigNum, BigNum). Static method in class java.math.BigNum

N

newBuffer(int). Static method in class java.math.BigInteger
An internal function to create a buffer big enough in which to store a number.
numberOfBits(). Method in class java.math.BigInteger

O

one(BigNum). Static method in class java.math.BigNum

R

reset(). Method in class java.crypt.MD5
Initialise (reset) the message digest.
reset(). Method in class java.crypt.MessageDigest
Initialise (reset) the message digest.
reset(). Method in class java.crypt.SHA
Initialise (reset) the message digest.

S

SHA(). Constructor for class java.crypt.SHA
The public constructor.
shiftLeft(BigNum, BigNum, short). Static method in class java.math.BigNum
shiftLeftOnce(BigNum, BigNum). Static method in class java.math.BigNum
shiftRight(BigNum, BigNum, short). Static method in class java.math.BigNum
shiftRightOnce(BigNum, BigNum). Static method in class java.math.BigNum
sub(BigNum, BigNum, BigNum). Static method in class java.math.BigNum

T

toByteArray(). Method in class java.math.BigInteger
Convert a number into a byte array
toString(). Method in class java.math.BigInteger
Returns a String that represents the value of this Object.
toString(). Method in class java.math.BigNum
Returns a String that represents the value of this Object.

U

ucmp(BigNum, BigNum). Static method in class java.math.BigNum

Z

zero(BigNum). Static method in class java.math.BigNum