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.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 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 |
ARCFourSpi
public ARCFourSpi()
engineGetBlockSize
protected int engineGetBlockSize()
engineSetMode
protected void engineSetMode(java.lang.String s)
throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
engineSetPadding
protected void engineSetPadding(java.lang.String s)
throws javax.crypto.NoSuchPaddingException
- Throws:
javax.crypto.NoSuchPaddingException
engineGetIV
protected byte[] engineGetIV()
engineGetOutputSize
protected int engineGetOutputSize(int in)
engineGetParameters
protected java.security.AlgorithmParameters engineGetParameters()
engineInit
protected void engineInit(int mode,
java.security.Key key,
java.security.SecureRandom r)
throws java.security.InvalidKeyException
- Throws:
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
- Throws:
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
- Throws:
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
engineUpdate
protected byte[] engineUpdate(byte[] in,
int offset,
int length)
engineUpdate
protected int engineUpdate(byte[] in,
int inOffset,
int length,
byte[] out,
int outOffset)
throws javax.crypto.ShortBufferException
- Throws:
javax.crypto.ShortBufferException
engineDoFinal
protected byte[] engineDoFinal(byte[] in,
int offset,
int length)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
- Throws:
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
- Throws:
javax.crypto.ShortBufferException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.