au.net.aba.crypto.provider
Class DESede
java.lang.Object
|
+--javax.crypto.CipherSpi
|
+--au.net.aba.crypto.provider.BlockCipher
|
+--au.net.aba.crypto.provider.DES
|
+--au.net.aba.crypto.provider.DESede
- public class DESede
- extends DES
A class that provides DES-EDE encryption.
|
Field Summary |
static java.lang.String |
ident
|
| Fields inherited from class au.net.aba.crypto.provider.DES |
ident,
Kn1,
work |
| Fields inherited from class au.net.aba.crypto.provider.BlockCipher |
BLOCK_SIZE,
buffer,
bufferPos,
CBC,
cbcNextV,
cbcV,
ECB,
firstBlock,
ident,
ivec,
ivEncrypted,
ivInline,
key,
mode,
paddedStream,
random,
streamMode |
|
Method Summary |
protected int |
decryptBlock(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
Decrypt the given block starting at the given offset and place
the result in the provided buffer starting at the given offset. |
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. |
protected void |
setKey(java.security.Key key)
Set up the keys for the DES EDE cipher. |
| Methods inherited from class au.net.aba.crypto.provider.BlockCipher |
engineDoFinal,
engineDoFinal,
engineGetBlockSize,
engineGetIV,
engineGetOutputSize,
engineGetParameters,
engineInit,
engineInit,
engineInit,
engineSetMode,
engineSetPadding,
engineUpdate,
engineUpdate,
reset |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ident
public static final java.lang.String ident
DESede
public DESede()
setKey
protected void setKey(java.security.Key key)
throws java.security.InvalidKeyException
- Set up the keys for the DES EDE cipher.
- Overrides:
- setKey in class DES
encryptBlock
protected int encryptBlock(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
throws IllegalBlockSizeException
- Description copied from class: BlockCipher
- Encrypt the given block starting at the given offset and place
the result in the provided buffer starting at the given offset.
The input will be an exact multiple of our blocksize.
- Overrides:
- encryptBlock in class DES
decryptBlock
protected int decryptBlock(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
throws BadPaddingException
- Description copied from class: BlockCipher
- Decrypt the given block starting at the given offset and place
the result in the provided buffer starting at the given offset.
The input will be an exact multiple of our blocksize.
- Overrides:
- decryptBlock in class DES