| Modifier and Type | Field and Description |
|---|---|
| private static final int[] | |
| protected static final int | |
| private static final short[] | bytebit
what follows is mainly taken from "Applied Cryptography", by
Bruce Schneier, however it also bears great resemblance to Richard
Outerbridge's D3DES...
|
| private boolean | |
| private static final byte[] | |
| private static final byte[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final byte[] | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | desFunc(int[] wKey, byte[] in, int inOff, byte[] out, int outOff)
the DES engine.
|
| protected int[] | generateWorkingKey(boolean encrypting, byte[] key)
Overrides org. |
| public String | getAlgorithmName()
Implements org. |
| public int | getBlockSize()
Implements org. |
| public void | init(boolean
whether or not we are for encryption. encrypting, CipherParameters the parameters required to set up the cipher. params)Implements org. |
| public int | processBlock(byte[]
the array containing the input data. in, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. out, int the offset into the out array the output will start at. outOff)Implements org. |
| public void |
| bigbyte | back to summary |
|---|---|
| private static final int[] bigbyte | |
| BLOCK_SIZE | back to summary |
|---|---|
| protected static final int BLOCK_SIZE | |
| bytebit | back to summary |
|---|---|
| private static final short[] bytebit Hides org. what follows is mainly taken from "Applied Cryptography", by Bruce Schneier, however it also bears great resemblance to Richard Outerbridge's D3DES... | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| pc1 | back to summary |
|---|---|
| private static final byte[] pc1 | |
| pc2 | back to summary |
|---|---|
| private static final byte[] pc2 | |
| SP1 | back to summary |
|---|---|
| private static final int[] SP1 | |
| SP2 | back to summary |
|---|---|
| private static final int[] SP2 | |
| SP3 | back to summary |
|---|---|
| private static final int[] SP3 | |
| SP4 | back to summary |
|---|---|
| private static final int[] SP4 | |
| SP5 | back to summary |
|---|---|
| private static final int[] SP5 | |
| SP6 | back to summary |
|---|---|
| private static final int[] SP6 | |
| SP7 | back to summary |
|---|---|
| private static final int[] SP7 | |
| SP8 | back to summary |
|---|---|
| private static final int[] SP8 | |
| totrot | back to summary |
|---|---|
| private static final byte[] totrot | |
| workingKey | back to summary |
|---|---|
| private int[] workingKey | |
| DESEngine | back to summary |
|---|---|
| public DESEngine() standard constructor. | |
| desFunc | back to summary |
|---|---|
| protected void desFunc(int[] wKey, byte[] in, int inOff, byte[] out, int outOff) Overrides org. the DES engine. | |
| generateWorkingKey | back to summary |
|---|---|
| protected int[] generateWorkingKey(boolean encrypting, byte[] key) Overrides org. 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!). | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Implements org. Doc from org. Return the block size for this cipher (in bytes).
| |
| init | back to summary |
|---|---|
| public void init(boolean encrypting, CipherParameters params) Implements org. initialise a DES cipher.
| |
| processBlock | back to summary |
|---|---|
| public int processBlock(byte[] in, int inOff, byte[] out, int outOff) Implements org. Doc from org. Process one block of input from the array in and write it to the out array.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |