Class DESEngine

java.lang.Object
net.sourceforge.jtds.util.DESEngine

public class DESEngine extends Object
a class that provides a basic DES engine. Modified by Matt Brinkley (mdb) ... mainly just removed depends on external classes.
Version:
$Id: DESEngine.java,v 1.3.6.1 2009-08-04 10:33:54 ickzon Exp $
Author:
Matt Brinkley
  • Field Details

  • Constructor Details

    • DESEngine

      public DESEngine()
      standard constructor.
    • DESEngine

      public DESEngine(boolean encrypting, byte[] key)
      mdb: convenient constructor
  • Method Details

    • init

      public void init(boolean encrypting, byte[] key)
      initialise a DES cipher.
      Parameters:
      encrypting - whether or not we are for encryption.
      key - the parameters required to set up the cipher.
      Throws:
      IllegalArgumentException - if the params argument is inappropriate.
    • getAlgorithmName

      public String getAlgorithmName()
    • getBlockSize

      public int getBlockSize()
    • processBlock

      public int processBlock(byte[] in, int inOff, byte[] out, int outOff)
    • reset

      public void reset()