| java.lang.Object ch.ethz.ssh2.crypto.cipher.DES
All known Subclasses: ch.ethz.ssh2.crypto.cipher.DESede,
DES | public class DES implements BlockCipher(Code) | | DES.
author: See comments in the source file version: $Id: DES.java,v 1.3 2005/12/05 17:13:27 cplattne Exp $ethz.ch |
Field Summary | |
static short[] | Df_Key what follows is mainly taken from "Applied Cryptography", by Bruce
Schneier, however it also bears great resemblance to Richard
Outerbridge's D3DES... | static int[] | SP1 | static int[] | SP2 | static int[] | SP3 | static int[] | SP4 | static int[] | SP5 | static int[] | SP6 | static int[] | SP7 | static int[] | SP8 | static int[] | bigbyte | static short[] | bytebit | static byte[] | pc1 | static byte[] | pc2 | static byte[] | totrot |
Constructor Summary | |
public | DES() standard constructor. |
Method Summary | |
protected void | desFunc(int[] wKey, byte[] in, int inOff, byte[] out, int outOff) the DES engine. | protected int[] | generateWorkingKey(boolean encrypting, byte[] key, int off) generate an integer based working key based on our secret key and what we
processing we are planning to do. | public String | getAlgorithmName() | public int | getBlockSize() | public void | init(boolean encrypting, byte[] key) initialise a DES cipher. | public void | reset() | public void | transformBlock(byte[] in, int inOff, byte[] out, int outOff) |
Df_Key | static short[] Df_Key(Code) | | what follows is mainly taken from "Applied Cryptography", by Bruce
Schneier, however it also bears great resemblance to Richard
Outerbridge's D3DES...
|
bigbyte | static int[] bigbyte(Code) | | |
bytebit | static short[] bytebit(Code) | | |
totrot | static byte[] totrot(Code) | | |
DES | public DES()(Code) | | standard constructor.
|
desFunc | protected void desFunc(int[] wKey, byte[] in, int inOff, byte[] out, int outOff)(Code) | | the DES engine.
|
generateWorkingKey | protected int[] generateWorkingKey(boolean encrypting, byte[] key, int off)(Code) | | generate an integer based working key based on our secret key and what we
processing we are planning to do.
Acknowledgements for this routine go to James Gillogly & Phil Karn.
(whoever, and wherever they are!).
|
getBlockSize | public int getBlockSize()(Code) | | |
init | public void init(boolean encrypting, byte[] key)(Code) | | initialise a DES cipher.
Parameters: encrypting - whether or not we are for encryption. Parameters: key - the parameters required to set up the cipher. exception: IllegalArgumentException - if the params argument is inappropriate. |
reset | public void reset()(Code) | | |
transformBlock | public void transformBlock(byte[] in, int inOff, byte[] out, int outOff)(Code) | | |
|
|