Class DESede

java.lang.Object
com.trilead.ssh2.crypto.cipher.DES
com.trilead.ssh2.crypto.cipher.DESede
All Implemented Interfaces:
BlockCipher

public class DESede extends DES
DESede.
  • Constructor Details

    • DESede

      public DESede()
      standard constructor.
  • Method Details

    • init

      public void init(boolean encrypting, byte[] key)
      initialise a DES cipher.
      Specified by:
      init in interface BlockCipher
      Overrides:
      init in class DES
      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()
      Overrides:
      getAlgorithmName in class DES
    • getBlockSize

      public int getBlockSize()
      Specified by:
      getBlockSize in interface BlockCipher
      Overrides:
      getBlockSize in class DES
    • transformBlock

      public void transformBlock(byte[] in, int inOff, byte[] out, int outOff)
      Specified by:
      transformBlock in interface BlockCipher
      Overrides:
      transformBlock in class DES
    • reset

      public void reset()
      Overrides:
      reset in class DES