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

All Implemented Interfaces:
    DESConstants

Direct Known Subclasses:
    DESedeCrypt

This is the internal DES class responsible for encryption and decryption of a byte array of size DES_BLOCK_SIZE.
Field Summary
 byte[] expandedKey     
 boolean decrypting     
Method from com.sun.crypto.provider.DESCrypt Summary:
cipherBlock,   decryptBlock,   encryptBlock,   expandKey,   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.DESCrypt Detail:
  void cipherBlock(byte[] in,
    int inOffset,
    byte[] out,
    int outOffset) 
  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.

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