Class JCEIESCipher
java.lang.Object
org.gudy.bouncycastle.jce.provider.JCEIESCipher
- Direct Known Subclasses:
JCEIESCipher.ECIES
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class[]
private ByteArrayOutputStream
private IESEngine
private AlgorithmParameters
private IESParameterSpec
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
engineDoFinal
(byte[] input, int inputOffset, int inputLen) int
engineDoFinal
(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) protected int
protected byte[]
protected int
engineGetKeySize
(Key key) protected int
engineGetOutputSize
(int inputLen) protected AlgorithmParameters
protected void
engineInit
(int opmode, Key key, AlgorithmParameters params, SecureRandom random) protected void
engineInit
(int opmode, Key key, SecureRandom random) void
engineInit
(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) protected void
engineSetMode
(String mode) protected void
engineSetPadding
(String padding) byte[]
engineUpdate
(byte[] input, int inputOffset, int inputLen) int
engineUpdate
(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
-
Field Details
-
cipher
-
state
private int state -
buffer
-
engineParam
-
engineParams
-
availableSpecs
-
-
Constructor Details
-
JCEIESCipher
-
-
Method Details
-
engineGetBlockSize
protected int engineGetBlockSize() -
engineGetIV
protected byte[] engineGetIV() -
engineGetKeySize
-
engineGetOutputSize
protected int engineGetOutputSize(int inputLen) -
engineGetParameters
-
engineSetMode
-
engineSetPadding
- Throws:
NoSuchPaddingException
-
engineInit
public void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException -
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException -
engineInit
- Throws:
InvalidKeyException
-
engineUpdate
public byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) -
engineUpdate
public int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) -
engineDoFinal
public byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException -
engineDoFinal
public int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws IllegalBlockSizeException, BadPaddingException
-