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.


Variable Index

 o ident
 o Rounds

Constructor Index

 o Blowfish()

Method Index

 o 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.
 o 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.
 o setKey(Key)
Re-key the cipher.

Variables

 o ident
 public static final String ident
 o Rounds
 protected static final int Rounds

Constructors

 o Blowfish
 public Blowfish()

Methods

 o 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
 o 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
 o 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