org.gudy.bouncycastle.jce.provider
Class JCEIESCipher
java.lang.Object
org.gudy.bouncycastle.jce.provider.JCEIESCipher
- Direct Known Subclasses:
- JCEIESCipher.ECIES
public class JCEIESCipher
- extends Object
Method Summary |
byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
|
int |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
|
protected int |
engineGetBlockSize()
|
protected byte[] |
engineGetIV()
|
protected int |
engineGetKeySize(Key key)
|
protected int |
engineGetOutputSize(int inputLen)
|
protected AlgorithmParameters |
engineGetParameters()
|
void |
engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
|
protected void |
engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
|
protected void |
engineInit(int opmode,
Key key,
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCEIESCipher
public JCEIESCipher(IESEngine engine)
engineGetBlockSize
protected int engineGetBlockSize()
engineGetIV
protected byte[] engineGetIV()
engineGetKeySize
protected int engineGetKeySize(Key key)
engineGetOutputSize
protected int engineGetOutputSize(int inputLen)
engineGetParameters
protected AlgorithmParameters engineGetParameters()
engineSetMode
protected void engineSetMode(String mode)
engineSetPadding
protected void engineSetPadding(String padding)
throws NoSuchPaddingException
- Throws:
NoSuchPaddingException
engineInit
public void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
engineInit
protected void engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
engineInit
protected void engineInit(int opmode,
Key key,
SecureRandom random)
throws InvalidKeyException
- 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
- Throws:
IllegalBlockSizeException
BadPaddingException
engineDoFinal
public int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws IllegalBlockSizeException,
BadPaddingException
- Throws:
IllegalBlockSizeException
BadPaddingException