Save This Page
Home » openjdk-7 » com.sun.crypto » provider » [javadoc | source]
com.sun.crypto.provider
public final class: ARCFOURCipher [javadoc | source]
java.lang.Object
   javax.crypto.CipherSpi
      com.sun.crypto.provider.ARCFOURCipher
Implementation of the ARCFOUR cipher, an algorithm apparently compatible with RSA Security's RC4(tm) cipher. The description of this algorithm was taken from Bruce Schneier's book Applied Cryptography, 2nd ed., section 17.1. We support keys from 40 to 1024 bits. ARCFOUR would allow for keys shorter than 40 bits, but that is too insecure for us to permit. Note that we subclass CipherSpi directly and do not use the CipherCore framework. That was designed to simplify implementation of block ciphers and does not offer any advantages for stream ciphers such as ARCFOUR.
Constructor:
 public ARCFOURCipher() 
Method from com.sun.crypto.provider.ARCFOURCipher Summary:
engineDoFinal,   engineDoFinal,   engineGetBlockSize,   engineGetIV,   engineGetKeySize,   engineGetOutputSize,   engineGetParameters,   engineInit,   engineInit,   engineInit,   engineSetMode,   engineSetPadding,   engineUnwrap,   engineUpdate,   engineUpdate,   engineWrap
Methods from javax.crypto.CipherSpi:
a,   engineDoFinal,   engineDoFinal,   engineDoFinal,   engineGetBlockSize,   engineGetIV,   engineGetKeySize,   engineGetOutputSize,   engineGetParameters,   engineInit,   engineInit,   engineInit,   engineSetMode,   engineSetPadding,   engineUnwrap,   engineUpdate,   engineUpdate,   engineUpdate,   engineWrap
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.crypto.provider.ARCFOURCipher Detail:
 protected byte[] engineDoFinal(byte[] in,
    int inOfs,
    int inLen) 
 protected int engineDoFinal(byte[] in,
    int inOfs,
    int inLen,
    byte[] out,
    int outOfs) throws ShortBufferException 
 protected int engineGetBlockSize() 
 protected byte[] engineGetIV() 
 protected int engineGetKeySize(Key key) throws InvalidKeyException 
 protected int engineGetOutputSize(int inputLen) 
 protected AlgorithmParameters engineGetParameters() 
 protected  void engineInit(int opmode,
    Key key,
    SecureRandom random) throws InvalidKeyException 
 protected  void engineInit(int opmode,
    Key key,
    AlgorithmParameterSpec params,
    SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException 
 protected  void engineInit(int opmode,
    Key key,
    AlgorithmParameters params,
    SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException 
 protected  void engineSetMode(String mode) throws NoSuchAlgorithmException 
 protected  void engineSetPadding(String padding) throws NoSuchPaddingException 
 protected Key engineUnwrap(byte[] wrappedKey,
    String algorithm,
    int type) throws InvalidKeyException, NoSuchAlgorithmException 
 protected byte[] engineUpdate(byte[] in,
    int inOfs,
    int inLen) 
 protected int engineUpdate(byte[] in,
    int inOfs,
    int inLen,
    byte[] out,
    int outOfs) throws ShortBufferException 
 protected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException