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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Classes that inherit from usstatic class
static class
Nested classes/interfaces inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
BaseCipherSpi.ErasableOutputStream
-
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
engineParams, wrapEngine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
engineDoFinal
(byte[] input, int inputOffset, int inputLen) int
engineDoFinal
(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) int
byte[]
int
engineGetKeySize
(Key key) int
engineGetOutputSize
(int inputLen) void
engineInit
(int opmode, Key key, AlgorithmParameters params, SecureRandom random) void
engineInit
(int opmode, Key key, SecureRandom random) void
engineInit
(int opmode, Key key, AlgorithmParameterSpec engineSpec, SecureRandom random) void
engineSetMode
(String mode) void
engineSetPadding
(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 org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
createParametersInstance, engineUnwrap, engineWrap
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
Constructor Details
-
IESCipher
-
IESCipher
-
-
Method Details
-
engineGetBlockSize
public int engineGetBlockSize()- Overrides:
engineGetBlockSize
in classBaseCipherSpi
-
engineGetKeySize
- Overrides:
engineGetKeySize
in classBaseCipherSpi
-
engineGetIV
public byte[] engineGetIV()- Overrides:
engineGetIV
in classBaseCipherSpi
-
engineGetParameters
- Overrides:
engineGetParameters
in classBaseCipherSpi
-
engineSetMode
- Overrides:
engineSetMode
in classBaseCipherSpi
- Throws:
NoSuchAlgorithmException
-
engineGetOutputSize
public int engineGetOutputSize(int inputLen) - Overrides:
engineGetOutputSize
in classBaseCipherSpi
-
engineSetPadding
- Overrides:
engineSetPadding
in classBaseCipherSpi
- Throws:
NoSuchPaddingException
-
engineInit
public void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInit
in classCipherSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineInit
public void engineInit(int opmode, Key key, AlgorithmParameterSpec engineSpec, SecureRandom random) throws InvalidAlgorithmParameterException, InvalidKeyException - Specified by:
engineInit
in classCipherSpi
- Throws:
InvalidAlgorithmParameterException
InvalidKeyException
-
engineInit
- Specified by:
engineInit
in classCipherSpi
- Throws:
InvalidKeyException
-
engineUpdate
public byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) - Specified by:
engineUpdate
in classCipherSpi
-
engineUpdate
public int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) - Specified by:
engineUpdate
in classCipherSpi
-
engineDoFinal
public byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException - Specified by:
engineDoFinal
in classCipherSpi
- Throws:
IllegalBlockSizeException
BadPaddingException
-
engineDoFinal
public int engineDoFinal(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException - Specified by:
engineDoFinal
in classCipherSpi
- Throws:
ShortBufferException
IllegalBlockSizeException
BadPaddingException
-