public class BaseBlockCipher extends BaseWrapCipher implements PBE
engineParams, pbeHash, pbeIvSize, pbeKeySize, pbeType, wrapEngine
Modifier | Constructor and Description |
---|---|
protected |
BaseBlockCipher(AEADBlockCipher engine) |
protected |
BaseBlockCipher(BlockCipher engine) |
protected |
BaseBlockCipher(BlockCipher engine,
int ivLength) |
protected |
BaseBlockCipher(BlockCipherProvider provider) |
protected |
BaseBlockCipher(BufferedBlockCipher engine,
int ivLength) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen) |
protected 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() |
protected 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) |
protected byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
protected void |
engineUpdateAAD(byte[] input,
int offset,
int length) |
protected void |
engineUpdateAAD(ByteBuffer bytebuffer) |
createParametersInstance, engineUnwrap, engineWrap
engineDoFinal, engineUpdate
protected BaseBlockCipher(BlockCipher engine)
protected BaseBlockCipher(BlockCipherProvider provider)
protected BaseBlockCipher(AEADBlockCipher engine)
protected BaseBlockCipher(BlockCipher engine, int ivLength)
protected BaseBlockCipher(BufferedBlockCipher engine, int ivLength)
protected int engineGetBlockSize()
engineGetBlockSize
in class BaseWrapCipher
protected byte[] engineGetIV()
engineGetIV
in class BaseWrapCipher
protected int engineGetKeySize(Key key)
engineGetKeySize
in class BaseWrapCipher
protected int engineGetOutputSize(int inputLen)
engineGetOutputSize
in class BaseWrapCipher
protected AlgorithmParameters engineGetParameters()
engineGetParameters
in class BaseWrapCipher
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode
in class BaseWrapCipher
NoSuchAlgorithmException
protected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding
in class BaseWrapCipher
NoSuchPaddingException
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class BaseWrapCipher
InvalidKeyException
InvalidAlgorithmParameterException
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class BaseWrapCipher
InvalidKeyException
InvalidAlgorithmParameterException
protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException
engineInit
in class BaseWrapCipher
InvalidKeyException
protected void engineUpdateAAD(byte[] input, int offset, int length)
engineUpdateAAD
in class CipherSpi
protected void engineUpdateAAD(ByteBuffer bytebuffer)
engineUpdateAAD
in class CipherSpi
protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
engineUpdate
in class BaseWrapCipher
protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException
engineUpdate
in class BaseWrapCipher
ShortBufferException
protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException
engineDoFinal
in class BaseWrapCipher
IllegalBlockSizeException
BadPaddingException
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws IllegalBlockSizeException, BadPaddingException, ShortBufferException
engineDoFinal
in class BaseWrapCipher
IllegalBlockSizeException
BadPaddingException
ShortBufferException
Copyright © 2016 BouncyCastle.org. All rights reserved.