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, cbcV, ECB, firstBlock, ident, ivec, ivEncrypted, ivInline, key, mode, paddedStream, random, streamMode
 
Fields inherited from class javax.crypto.CipherSpi
ident
 
Constructor Summary
DESede()
           
 
Method Summary
protected  int decryptBlock(byte[] in, int inOff, int len, byte[] out, int outOff)
           
protected  int encryptBlock(byte[] in, int inOff, int len, byte[] out, int outOff)
           
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.DES
desfunc, prepareKeys, scrunch, unscrunch
 
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
 

Field Detail

ident

public static final java.lang.String ident
Constructor Detail

DESede

public DESede()
Method Detail

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
Overrides:
encryptBlock in class DES

decryptBlock

protected int decryptBlock(byte[] in,
                           int inOff,
                           int len,
                           byte[] out,
                           int outOff)
                    throws BadPaddingException
Overrides:
decryptBlock in class DES