public class IESCipher extends CipherSpi
Modifier and Type | Class and Description |
---|---|
static class |
IESCipher.IES
Classes that inherit from us
|
static class |
IESCipher.IESwithAESCBC |
static class |
IESCipher.IESwithDESedeCBC |
Constructor and Description |
---|
IESCipher(IESEngine engine) |
IESCipher(IESEngine engine,
int ivLength) |
Modifier and Type | Method and Description |
---|---|
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(Key key) |
int |
engineGetOutputSize(int inputLen) |
AlgorithmParameters |
engineGetParameters() |
void |
engineInit(int opmode,
Key key,
AlgorithmParameterSpec engineSpec,
SecureRandom random) |
void |
engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random) |
void |
engineInit(int opmode,
Key key,
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) |
engineDoFinal, engineUnwrap, engineUpdate, engineUpdateAAD, engineUpdateAAD, engineWrap
public IESCipher(IESEngine engine)
public IESCipher(IESEngine engine, int ivLength)
public int engineGetBlockSize()
engineGetBlockSize
in class CipherSpi
public int engineGetKeySize(Key key)
engineGetKeySize
in class CipherSpi
public byte[] engineGetIV()
engineGetIV
in class CipherSpi
public AlgorithmParameters engineGetParameters()
engineGetParameters
in class CipherSpi
public void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode
in class CipherSpi
NoSuchAlgorithmException
public int engineGetOutputSize(int inputLen)
engineGetOutputSize
in class CipherSpi
public void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding
in class CipherSpi
NoSuchPaddingException
public void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class CipherSpi
InvalidKeyException
InvalidAlgorithmParameterException
public void engineInit(int opmode, Key key, AlgorithmParameterSpec engineSpec, SecureRandom random) throws InvalidAlgorithmParameterException, InvalidKeyException
engineInit
in class CipherSpi
InvalidAlgorithmParameterException
InvalidKeyException
public void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException
engineInit
in class CipherSpi
InvalidKeyException
public byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
engineUpdate
in class CipherSpi
public int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
engineUpdate
in class CipherSpi
public byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException
engineDoFinal
in class CipherSpi
IllegalBlockSizeException
BadPaddingException
public int engineDoFinal(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException
engineDoFinal
in class CipherSpi
ShortBufferException
IllegalBlockSizeException
BadPaddingException
Copyright © 2018 BouncyCastle.org. All rights reserved.