gnu.crypto.jce.cipher
Class ARCFourSpi
java.lang.Object
javax.crypto.CipherSpi
gnu.crypto.jce.cipher.ARCFourSpi
public class ARCFourSpi
- extends CipherSpi
The Service Provider Interface (SPI) for the ARCFOUR
stream cipher.
- Version:
- $Revision: 1.2 $
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 AlgorithmParameters |
engineGetParameters()
|
protected void |
engineInit(int mode,
Key key,
AlgorithmParameterSpec p,
SecureRandom r)
|
protected void |
engineInit(int mode,
Key key,
AlgorithmParameters p,
SecureRandom r)
|
protected void |
engineInit(int mode,
Key key,
SecureRandom r)
|
protected void |
engineSetMode(String s)
|
protected void |
engineSetPadding(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARCFourSpi
public ARCFourSpi()
engineGetBlockSize
protected int engineGetBlockSize()
- Specified by:
engineGetBlockSize
in class CipherSpi
engineSetMode
protected void engineSetMode(String s)
throws NoSuchAlgorithmException
- Specified by:
engineSetMode
in class CipherSpi
- Throws:
NoSuchAlgorithmException
engineSetPadding
protected void engineSetPadding(String s)
throws NoSuchPaddingException
- Specified by:
engineSetPadding
in class CipherSpi
- Throws:
NoSuchPaddingException
engineGetIV
protected byte[] engineGetIV()
- Specified by:
engineGetIV
in class CipherSpi
engineGetOutputSize
protected int engineGetOutputSize(int in)
- Specified by:
engineGetOutputSize
in class CipherSpi
engineGetParameters
protected AlgorithmParameters engineGetParameters()
- Specified by:
engineGetParameters
in class CipherSpi
engineInit
protected void engineInit(int mode,
Key key,
SecureRandom r)
throws InvalidKeyException
- Specified by:
engineInit
in class CipherSpi
- Throws:
InvalidKeyException
engineInit
protected void engineInit(int mode,
Key key,
AlgorithmParameterSpec p,
SecureRandom r)
throws InvalidKeyException,
InvalidAlgorithmParameterException
- Specified by:
engineInit
in class CipherSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
engineInit
protected void engineInit(int mode,
Key key,
AlgorithmParameters p,
SecureRandom r)
throws InvalidKeyException,
InvalidAlgorithmParameterException
- Specified by:
engineInit
in class CipherSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
engineUpdate
protected byte[] engineUpdate(byte[] in,
int offset,
int length)
- Specified by:
engineUpdate
in class CipherSpi
engineUpdate
protected int engineUpdate(byte[] in,
int inOffset,
int length,
byte[] out,
int outOffset)
throws ShortBufferException
- Specified by:
engineUpdate
in class CipherSpi
- Throws:
ShortBufferException
engineDoFinal
protected byte[] engineDoFinal(byte[] in,
int offset,
int length)
throws IllegalBlockSizeException,
BadPaddingException
- Specified by:
engineDoFinal
in class CipherSpi
- Throws:
IllegalBlockSizeException
BadPaddingException
engineDoFinal
protected int engineDoFinal(byte[] in,
int inOffset,
int length,
byte[] out,
int outOffset)
throws ShortBufferException,
IllegalBlockSizeException,
BadPaddingException
- Specified by:
engineDoFinal
in class CipherSpi
- Throws:
ShortBufferException
IllegalBlockSizeException
BadPaddingException
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.