public abstract class BaseWrapCipher extends CipherSpi implements PBE
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseWrapCipher.ErasableOutputStream |
protected static class |
BaseWrapCipher.InvalidKeyOrParametersException |
| Modifier and Type | Field and Description |
|---|---|
protected AlgorithmParameters |
engineParams |
protected int |
pbeHash |
protected int |
pbeIvSize |
protected int |
pbeKeySize |
protected int |
pbeType |
protected Wrapper |
wrapEngine |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseWrapCipher() |
protected |
BaseWrapCipher(Wrapper wrapEngine) |
protected |
BaseWrapCipher(Wrapper wrapEngine,
int ivSize) |
| Modifier and Type | Method and Description |
|---|---|
protected AlgorithmParameters |
createParametersInstance(String algorithm) |
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 Key |
engineUnwrap(byte[] wrappedKey,
String wrappedKeyAlgorithm,
int wrappedKeyType) |
protected byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
protected byte[] |
engineWrap(Key key) |
engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAADprotected int pbeType
protected int pbeHash
protected int pbeKeySize
protected int pbeIvSize
protected AlgorithmParameters engineParams
protected Wrapper wrapEngine
protected BaseWrapCipher()
protected BaseWrapCipher(Wrapper wrapEngine)
protected BaseWrapCipher(Wrapper wrapEngine, int ivSize)
protected int engineGetBlockSize()
engineGetBlockSize in class CipherSpiprotected byte[] engineGetIV()
engineGetIV in class CipherSpiprotected int engineGetKeySize(Key key)
engineGetKeySize in class CipherSpiprotected int engineGetOutputSize(int inputLen)
engineGetOutputSize in class CipherSpiprotected AlgorithmParameters engineGetParameters()
engineGetParameters in class CipherSpiprotected final AlgorithmParameters createParametersInstance(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode in class CipherSpiNoSuchAlgorithmExceptionprotected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding in class CipherSpiNoSuchPaddingExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class CipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class CipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
Key key,
SecureRandom random)
throws InvalidKeyException
engineInit in class CipherSpiInvalidKeyExceptionprotected byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
engineUpdate in class CipherSpiprotected int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException
engineUpdate in class CipherSpiShortBufferExceptionprotected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class CipherSpiIllegalBlockSizeExceptionBadPaddingExceptionprotected int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws IllegalBlockSizeException,
BadPaddingException,
ShortBufferException
engineDoFinal in class CipherSpiIllegalBlockSizeExceptionBadPaddingExceptionShortBufferExceptionprotected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException
engineWrap in class CipherSpiIllegalBlockSizeExceptionInvalidKeyExceptionprotected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException, NoSuchAlgorithmException
engineUnwrap in class CipherSpiInvalidKeyExceptionNoSuchAlgorithmExceptionCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.