Package net.sourceforge.jtds.util
Class DESEngine
java.lang.Object
net.sourceforge.jtds.util.DESEngine
a class that provides a basic DES engine.
Modified by Matt Brinkley (mdb) ... mainly just removed depends on external classes.
- Version:
- $Id: DESEngine.java,v 1.3.6.1 2009-08-04 10:33:54 ickzon Exp $
- Author:
- Matt Brinkley
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
init
(boolean encrypting, byte[] key) initialise a DES cipher.int
processBlock
(byte[] in, int inOff, byte[] out, int outOff) void
reset()
-
Field Details
-
BLOCK_SIZE
protected static final int BLOCK_SIZE- See Also:
-
cf
-
-
Constructor Details
-
DESEngine
public DESEngine()standard constructor. -
DESEngine
public DESEngine(boolean encrypting, byte[] key) mdb: convenient constructor
-
-
Method Details
-
init
public void init(boolean encrypting, byte[] key) initialise a DES cipher.- 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
-
getBlockSize
public int getBlockSize() -
processBlock
public int processBlock(byte[] in, int inOff, byte[] out, int outOff) -
reset
public void reset()
-