org.bouncycastle.jcajce.provider.asymmetric.dh
Class IESCipher
java.lang.Object
|
+--javax.crypto.CipherSpi
|
+--org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
|
+--org.bouncycastle.jcajce.provider.asymmetric.dh.IESCipher
- Direct Known Subclasses:
- IESCipher.IES, IESCipher.IESwithAESCBC, IESCipher.IESwithDESedeCBC
- public class IESCipher
- extends BaseCipherSpi
Method Summary |
byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
|
int |
engineDoFinal(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
|
int |
engineGetBlockSize()
|
byte[] |
engineGetIV()
|
int |
engineGetKeySize(java.security.Key key)
|
int |
engineGetOutputSize(int inputLen)
|
java.security.AlgorithmParameters |
engineGetParameters()
|
void |
engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec engineSpec,
java.security.SecureRandom random)
|
void |
engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random)
|
void |
engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random)
|
void |
engineSetMode(java.lang.String mode)
|
void |
engineSetPadding(java.lang.String padding)
|
byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen)
|
int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IESCipher
public IESCipher(IESEngine engine)
IESCipher
public IESCipher(IESEngine engine,
int ivLength)
engineGetBlockSize
public int engineGetBlockSize()
- Overrides:
engineGetBlockSize
in class BaseCipherSpi
engineGetKeySize
public int engineGetKeySize(java.security.Key key)
- Overrides:
engineGetKeySize
in class BaseCipherSpi
engineGetIV
public byte[] engineGetIV()
- Overrides:
engineGetIV
in class BaseCipherSpi
engineGetParameters
public java.security.AlgorithmParameters engineGetParameters()
- Overrides:
engineGetParameters
in class BaseCipherSpi
engineSetMode
public void engineSetMode(java.lang.String mode)
throws java.security.NoSuchAlgorithmException
- Overrides:
engineSetMode
in class BaseCipherSpi
engineGetOutputSize
public int engineGetOutputSize(int inputLen)
- Overrides:
engineGetOutputSize
in class BaseCipherSpi
engineSetPadding
public void engineSetPadding(java.lang.String padding)
throws javax.crypto.NoSuchPaddingException
- Overrides:
engineSetPadding
in class BaseCipherSpi
engineInit
public void engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
- Overrides:
engineInit
in class javax.crypto.CipherSpi
engineInit
public void engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec engineSpec,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException,
java.security.InvalidKeyException
- Overrides:
engineInit
in class javax.crypto.CipherSpi
engineInit
public void engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
- Overrides:
engineInit
in class javax.crypto.CipherSpi
engineUpdate
public byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
- Overrides:
engineUpdate
in class javax.crypto.CipherSpi
engineUpdate
public int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
- Overrides:
engineUpdate
in class javax.crypto.CipherSpi
engineDoFinal
public byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
- Overrides:
engineDoFinal
in class javax.crypto.CipherSpi
engineDoFinal
public int engineDoFinal(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws javax.crypto.ShortBufferException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
- Overrides:
engineDoFinal
in class javax.crypto.CipherSpi