Class DESede

  • All Implemented Interfaces:
    BlockCipher

    public class DESede
    extends DES
    DESede.
    Version:
    $Id: DESede.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
    • Field Detail

      • key1

        private int[] key1
      • key2

        private int[] key2
      • key3

        private int[] key3
      • encrypt

        private boolean encrypt
    • Constructor Detail

      • DESede

        public DESede()
        standard constructor.
    • Method Detail

      • 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:
        java.lang.IllegalArgumentException - if the params argument is inappropriate.
      • getAlgorithmName

        public java.lang.String getAlgorithmName()
        Overrides:
        getAlgorithmName in class DES
      • reset

        public void reset()
        Overrides:
        reset in class DES