| java.lang.Object org.bouncycastle.crypto.engines.DESEngine
All known Subclasses: org.bouncycastle.crypto.engines.DESedeEngine,
DESEngine | public class DESEngine implements BlockCipher(Code) | | a class that provides a basic DES engine.
|
Field Summary | |
final protected static int | BLOCK_SIZE |
Constructor Summary | |
public | DESEngine() 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) 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, CipherParameters params) initialise a DES cipher. | public int | processBlock(byte[] in, int inOff, byte[] out, int outOff) | public void | reset() |
BLOCK_SIZE | final protected static int BLOCK_SIZE(Code) | | |
DESEngine | public DESEngine()(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)(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, CipherParameters params)(Code) | | initialise a DES cipher.
Parameters: encrypting - whether or not we are for encryption. Parameters: params - the parameters required to set up the cipher. exception: IllegalArgumentException - if the params argument isinappropriate. |
processBlock | public int processBlock(byte[] in, int inOff, byte[] out, int outOff)(Code) | | |
reset | public void reset()(Code) | | |
|
|