Class au.net.aba.crypto.provider.DES
All Packages Class Hierarchy This Package Previous Next Index
Class au.net.aba.crypto.provider.DES
java.lang.Object
|
+----javax.crypto.CipherSpi
|
+----au.net.aba.crypto.provider.BlockCipher
|
+----au.net.aba.crypto.provider.DES
- public class DES
- extends BlockCipher
A class that provides DES encryption.
-
ident
-
-
Kn1
-
-
work
-
-
DES()
-
-
decryptBlock(byte[], int, int, byte[], int)
- Encrypt the given block starting at the given offset and place
the result in the provided buffer starting at the given offset.
-
desfunc(int[], int[])
- the DES engine.
-
encryptBlock(byte[], int, int, byte[], int)
- Encrypt the given block starting at the given offset and place
the result in the provided buffer starting at the given offset.
-
prepareKeys(int, byte[], int[])
- prepare the key for whatever processing we are planing.
-
scrunch(byte[], int, int[])
- pack 8 bytes from outof into 2 ints.
-
setKey(Key)
- Re-key the cipher.
-
unscrunch(int[], byte[], int)
- extract 8 bytes from the 2 ints in outof.
ident
public final static String ident
work
protected int work[]
Kn1
protected int Kn1[]
DES
public DES()
setKey
protected void setKey(Key key) throws InvalidKeyException
- Re-key the cipher.
- Overrides:
- setKey in class BlockCipher
encryptBlock
protected int encryptBlock(byte in[],
int inOff,
int len,
byte out[],
int outOff)
- Encrypt the given block starting at the given offset and place
the result in the provided buffer starting at the given offset.
- Overrides:
- encryptBlock in class BlockCipher
decryptBlock
protected int decryptBlock(byte in[],
int inOff,
int len,
byte out[],
int outOff)
- Encrypt the given block starting at the given offset and place
the result in the provided buffer starting at the given offset.
- Overrides:
- decryptBlock in class BlockCipher
prepareKeys
protected void prepareKeys(int opMode,
byte key[],
int keys[])
- prepare the key for whatever processing we are planing.
Acknowledgements for this routine go to James Gillogly & Phil Karn.
(whoever, and wherever they are!).
scrunch
protected void scrunch(byte outof[],
int offset,
int into[])
- pack 8 bytes from outof into 2 ints.
unscrunch
protected void unscrunch(int outof[],
byte into[],
int offset)
- extract 8 bytes from the 2 ints in outof.
desfunc
protected synchronized void desfunc(int block[],
int keys[])
- the DES engine.
All Packages Class Hierarchy This Package Previous Next Index