public abstract class WrapCipherSpi extends CipherSpi implements PBE
Modifier and Type | Class and Description |
---|---|
static class |
WrapCipherSpi.RC2Wrap |
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 |
WrapCipherSpi() |
protected |
WrapCipherSpi(Wrapper wrapEngine) |
protected |
WrapCipherSpi(Wrapper wrapEngine,
int ivSize) |
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 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, engineUpdateAAD
protected int pbeType
protected int pbeHash
protected int pbeKeySize
protected int pbeIvSize
protected AlgorithmParameters engineParams
protected Wrapper wrapEngine
protected WrapCipherSpi()
protected WrapCipherSpi(Wrapper wrapEngine)
protected WrapCipherSpi(Wrapper wrapEngine, int ivSize)
protected int engineGetBlockSize()
engineGetBlockSize
in class CipherSpi
protected byte[] engineGetIV()
engineGetIV
in class CipherSpi
protected int engineGetKeySize(Key key)
engineGetKeySize
in class CipherSpi
protected int engineGetOutputSize(int inputLen)
engineGetOutputSize
in class CipherSpi
protected AlgorithmParameters engineGetParameters()
engineGetParameters
in class CipherSpi
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode
in class CipherSpi
NoSuchAlgorithmException
protected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding
in class CipherSpi
NoSuchPaddingException
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class CipherSpi
InvalidKeyException
InvalidAlgorithmParameterException
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class CipherSpi
InvalidKeyException
InvalidAlgorithmParameterException
protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException
engineInit
in class CipherSpi
InvalidKeyException
protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
engineUpdate
in class CipherSpi
protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException
engineUpdate
in class CipherSpi
ShortBufferException
protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException
engineDoFinal
in class CipherSpi
IllegalBlockSizeException
BadPaddingException
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws IllegalBlockSizeException, BadPaddingException
engineDoFinal
in class CipherSpi
IllegalBlockSizeException
BadPaddingException
protected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException
engineWrap
in class CipherSpi
IllegalBlockSizeException
InvalidKeyException
protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException
engineUnwrap
in class CipherSpi
InvalidKeyException
Copyright © 2015. All rights reserved.