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 ByteArrayOutputStreamprivate IESEngineprivate AlgorithmParametersprivate IESParameterSpecprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]engineDoFinal(byte[] input, int inputOffset, int inputLen) intengineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) protected intprotected byte[]protected intengineGetKeySize(Key key) protected intengineGetOutputSize(int inputLen) protected AlgorithmParametersprotected voidengineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) protected voidengineInit(int opmode, Key key, SecureRandom random) voidengineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) protected voidengineSetMode(String mode) protected voidengineSetPadding(String padding) byte[]engineUpdate(byte[] input, int inputOffset, int inputLen) intengineUpdate(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
-