For the latest news and information visit
The GNU Crypto project

gnu.crypto.jce.cipher
Class ARCFourSpi

java.lang.Object
  |
  +--javax.crypto.CipherSpi
        |
        +--gnu.crypto.jce.cipher.ARCFourSpi

public class ARCFourSpi
extends javax.crypto.CipherSpi

The Service Provider Interface (SPI) for the ARCFOUR stream cipher.

Version:
$Revision: 1.1 $

Constructor Summary
ARCFourSpi()
           
 
Method Summary
protected  byte[] engineDoFinal(byte[] in, int offset, int length)
           
protected  int engineDoFinal(byte[] in, int inOffset, int length, byte[] out, int outOffset)
           
protected  int engineGetBlockSize()
           
protected  byte[] engineGetIV()
           
protected  int engineGetOutputSize(int in)
           
protected  java.security.AlgorithmParameters engineGetParameters()
           
protected  void engineInit(int mode, java.security.Key key, java.security.spec.AlgorithmParameterSpec p, java.security.SecureRandom r)
           
protected  void engineInit(int mode, java.security.Key key, java.security.AlgorithmParameters p, java.security.SecureRandom r)
           
protected  void engineInit(int mode, java.security.Key key, java.security.SecureRandom r)
           
protected  void engineSetMode(java.lang.String s)
           
protected  void engineSetPadding(java.lang.String s)
           
protected  byte[] engineUpdate(byte[] in, int offset, int length)
           
protected  int engineUpdate(byte[] in, int inOffset, int length, byte[] out, int outOffset)
           
 
Methods inherited from class javax.crypto.CipherSpi
engineGetKeySize, engineUnwrap, engineWrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARCFourSpi

public ARCFourSpi()
Method Detail

engineGetBlockSize

protected int engineGetBlockSize()
Specified by:
engineGetBlockSize in class javax.crypto.CipherSpi

engineSetMode

protected void engineSetMode(java.lang.String s)
                      throws java.security.NoSuchAlgorithmException
Specified by:
engineSetMode in class javax.crypto.CipherSpi
java.security.NoSuchAlgorithmException

engineSetPadding

protected void engineSetPadding(java.lang.String s)
                         throws javax.crypto.NoSuchPaddingException
Specified by:
engineSetPadding in class javax.crypto.CipherSpi
javax.crypto.NoSuchPaddingException

engineGetIV

protected byte[] engineGetIV()
Specified by:
engineGetIV in class javax.crypto.CipherSpi

engineGetOutputSize

protected int engineGetOutputSize(int in)
Specified by:
engineGetOutputSize in class javax.crypto.CipherSpi

engineGetParameters

protected java.security.AlgorithmParameters engineGetParameters()
Specified by:
engineGetParameters in class javax.crypto.CipherSpi

engineInit

protected void engineInit(int mode,
                          java.security.Key key,
                          java.security.SecureRandom r)
                   throws java.security.InvalidKeyException
Specified by:
engineInit in class javax.crypto.CipherSpi
java.security.InvalidKeyException

engineInit

protected void engineInit(int mode,
                          java.security.Key key,
                          java.security.spec.AlgorithmParameterSpec p,
                          java.security.SecureRandom r)
                   throws java.security.InvalidKeyException,
                          java.security.InvalidAlgorithmParameterException
Specified by:
engineInit in class javax.crypto.CipherSpi
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException

engineInit

protected void engineInit(int mode,
                          java.security.Key key,
                          java.security.AlgorithmParameters p,
                          java.security.SecureRandom r)
                   throws java.security.InvalidKeyException,
                          java.security.InvalidAlgorithmParameterException
Specified by:
engineInit in class javax.crypto.CipherSpi
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException

engineUpdate

protected byte[] engineUpdate(byte[] in,
                              int offset,
                              int length)
Specified by:
engineUpdate in class javax.crypto.CipherSpi

engineUpdate

protected int engineUpdate(byte[] in,
                           int inOffset,
                           int length,
                           byte[] out,
                           int outOffset)
                    throws javax.crypto.ShortBufferException
Specified by:
engineUpdate in class javax.crypto.CipherSpi
javax.crypto.ShortBufferException

engineDoFinal

protected byte[] engineDoFinal(byte[] in,
                               int offset,
                               int length)
                        throws javax.crypto.IllegalBlockSizeException,
                               javax.crypto.BadPaddingException
Specified by:
engineDoFinal in class javax.crypto.CipherSpi
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException

engineDoFinal

protected int engineDoFinal(byte[] in,
                            int inOffset,
                            int length,
                            byte[] out,
                            int outOffset)
                     throws javax.crypto.ShortBufferException,
                            javax.crypto.IllegalBlockSizeException,
                            javax.crypto.BadPaddingException
Specified by:
engineDoFinal in class javax.crypto.CipherSpi
javax.crypto.ShortBufferException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException

For the latest news and information visit
The GNU Crypto project

Copyright ©2001, 2002 Free Software Foundation, Inc.. All Rights Reserved.