public abstract class ProxyCipher extends CipherSpi
| Constructor and Description |
|---|
ProxyCipher()
Creates a new instance of this
ProxyCipher. |
| 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 |
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) |
protected void |
getAlgorithmInstance(XSecProvider.Purpose purpose) |
protected void |
getAlgorithmInstanceUncaught(XSecProvider.Purpose purpose) |
protected abstract String |
getCipherName() |
protected void |
getInstance(int opmode) |
engineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAADprotected Cipher cipher_
public ProxyCipher()
throws NoSuchAlgorithmException,
NoSuchProviderException,
NoSuchPaddingException
ProxyCipher.protected void getAlgorithmInstanceUncaught(XSecProvider.Purpose purpose) throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException
protected void getAlgorithmInstance(XSecProvider.Purpose purpose)
protected void getInstance(int opmode)
protected abstract String getCipherName()
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode in class CipherSpiNoSuchAlgorithmExceptionCipherSpi.engineSetMode(java.lang.String)protected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding in class CipherSpiNoSuchPaddingExceptionCipherSpi.engineSetPadding(java.lang.String)protected int engineGetBlockSize()
engineGetBlockSize in class CipherSpiCipherSpi.engineGetBlockSize()protected int engineGetOutputSize(int inputLen)
engineGetOutputSize in class CipherSpiCipherSpi.engineGetOutputSize(int)protected byte[] engineGetIV()
engineGetIV in class CipherSpiCipherSpi.engineGetIV()protected AlgorithmParameters engineGetParameters()
engineGetParameters in class CipherSpiCipherSpi.engineGetParameters()protected void engineInit(int opmode,
Key key,
SecureRandom random)
throws InvalidKeyException
engineInit in class CipherSpiInvalidKeyExceptionCipherSpi.engineInit(int, java.security.Key,
java.security.SecureRandom)protected void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
protected void engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class CipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionCipherSpi.engineInit(int, java.security.Key,
java.security.AlgorithmParameters, java.security.SecureRandom)protected byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
engineUpdate in class CipherSpiCipherSpi.engineUpdate(byte[], int, int)protected int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException
engineUpdate in class CipherSpiShortBufferExceptionCipherSpi.engineUpdate(byte[], int, int, byte[], int)protected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class CipherSpiIllegalBlockSizeExceptionBadPaddingExceptionCipherSpi.engineDoFinal(byte[], int, int)protected int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException,
IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class CipherSpiShortBufferExceptionIllegalBlockSizeExceptionBadPaddingExceptionCipherSpi.engineDoFinal(byte[], int, int, byte[], int)protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException, NoSuchAlgorithmException
engineUnwrap in class CipherSpiInvalidKeyExceptionNoSuchAlgorithmExceptionCipherSpi.engineUnwrap(byte[], java.lang.String, int)protected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException
engineWrap in class CipherSpiIllegalBlockSizeExceptionInvalidKeyExceptionCipherSpi.engineWrap(java.security.Key)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC