public class BaseStreamCipher extends BaseWrapCipher implements PBE
engineParams, pbeHash, pbeIvSize, pbeKeySize, pbeType, wrapEngine
Modifier | Constructor and Description |
---|---|
protected |
BaseStreamCipher(org.bouncycastle.crypto.StreamCipher engine,
int ivLength) |
protected |
BaseStreamCipher(org.bouncycastle.crypto.StreamCipher engine,
int ivLength,
int keySizeInBits,
int digest) |
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)
should never be called.
|
protected void |
engineSetPadding(String padding)
should never be called.
|
protected byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
createParametersInstance, engineUnwrap, engineWrap
engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAAD
protected BaseStreamCipher(org.bouncycastle.crypto.StreamCipher engine, int ivLength)
protected BaseStreamCipher(org.bouncycastle.crypto.StreamCipher engine, int ivLength, int keySizeInBits, int digest)
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)
engineSetMode
in class BaseWrapCipher
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 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)
engineDoFinal
in class BaseWrapCipher
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException
engineDoFinal
in class BaseWrapCipher
ShortBufferException
Copyright © 2017 BouncyCastle.org. All rights reserved.