All Packages Class Hierarchy This Package Previous Next Index
Class au.net.aba.crypto.provider.Blowfish
java.lang.Object
|
+----javax.crypto.CipherSpi
|
+----au.net.aba.crypto.provider.BlockCipher
|
+----au.net.aba.crypto.provider.Blowfish
- public final class Blowfish
- extends BlockCipher
A class that provides Blowfish key encryption operations,
such as encoding data and generating keys.
-
ident
-
-
Rounds
-
-
Blowfish()
-
-
decryptBlock(byte[], int, int, byte[], int)
- Decrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset.
-
encryptBlock(byte[], int, int, byte[], int)
- Encrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset.
-
setKey(Key)
- Re-key the cipher.
ident
public static final String ident
Rounds
protected static final int Rounds
Blowfish
public Blowfish()
setKey
protected void setKey(Key inKey) throws InvalidKeyException
- Re-key the cipher. If the provided Key is not compatible
with this cipher the exception should throw an InvalidKeyException.
- Parameters:
- inKey - the key to be used.
- Throws: InvalidKeyException
- if the key is of the wrong type.
- Overrides:
- setKey in class BlockCipher
encryptBlock
protected int encryptBlock(byte src[],
int srcIndex,
int len,
byte dst[],
int dstIndex) throws IllegalBlockSizeException
- Encrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset.
The input will be an exact multiple of our blocksize.
- Overrides:
- encryptBlock in class BlockCipher
decryptBlock
protected int decryptBlock(byte src[],
int srcIndex,
int len,
byte dst[],
int dstIndex) throws BadPaddingException
- Decrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset.
The input will be an exact multiple of our blocksize.
- Overrides:
- decryptBlock in class BlockCipher
All Packages Class Hierarchy This Package Previous Next Index