Save This Page
Home » openjdk-7 » com.sun.crypto » provider » [javadoc | source]
com.sun.crypto.provider
final class: BlowfishCrypt [javadoc | source]
java.lang.Object
   com.sun.crypto.provider.SymmetricCipher
      com.sun.crypto.provider.BlowfishCrypt

All Implemented Interfaces:
    BlowfishConstants

This is the internal Blowfish class responsible for encryption and decryption of a byte array of size BLOWFISH_BLOCK_SIZE.
Method from com.sun.crypto.provider.BlowfishCrypt Summary:
decryptBlock,   encryptBlock,   getBlockSize,   init
Methods from com.sun.crypto.provider.SymmetricCipher:
decryptBlock,   encryptBlock,   getBlockSize,   init
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.crypto.provider.BlowfishCrypt Detail:
  void decryptBlock(byte[] cipher,
    int cipherOffset,
    byte[] plain,
    int plainOffset) 
    Performs decryption operation.

    The input cipher text cipher, starting at cipherOffset and ending at (cipherOffset + len - 1), is decrypted. The result is stored in plain, starting at plainOffset.

    The subclass that implements Cipher should ensure that init has been called before this method is called.

  void encryptBlock(byte[] plain,
    int plainOffset,
    byte[] cipher,
    int cipherOffset) 
    Performs encryption operation.

    The input plain text plain, starting at plainOffset and ending at (plainOffset + len - 1), is encrypted. The result is stored in cipher, starting at cipherOffset.

    The subclass that implements Cipher should ensure that init has been called before this method is called.

 int getBlockSize() 
    Gets this cipher's block size.
  void init(boolean decrypting,
    String algorithm,
    byte[] rawKey) throws InvalidKeyException