public class CipherSpi extends BaseCipherSpi
Modifier and Type | Class and Description |
---|---|
static class |
CipherSpi.ISO9796d1Padding |
static class |
CipherSpi.NoPadding
classes that inherit from us.
|
static class |
CipherSpi.OAEPPadding |
static class |
CipherSpi.PKCS1v1_5Padding |
static class |
CipherSpi.PKCS1v1_5Padding_PrivateOnly |
static class |
CipherSpi.PKCS1v1_5Padding_PublicOnly |
wrapEngine
Constructor and Description |
---|
CipherSpi(AsymmetricBlockCipher engine) |
CipherSpi(boolean publicKeyOnly,
boolean privateKeyOnly,
AsymmetricBlockCipher engine) |
CipherSpi(OAEPParameterSpec pSpec) |
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 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) |
createParametersInstance, engineGetIV, engineUnwrap, engineWrap
engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAAD
public CipherSpi(AsymmetricBlockCipher engine)
public CipherSpi(OAEPParameterSpec pSpec)
public CipherSpi(boolean publicKeyOnly, boolean privateKeyOnly, AsymmetricBlockCipher engine)
protected int engineGetBlockSize()
engineGetBlockSize
in class BaseCipherSpi
protected int engineGetKeySize(Key key)
engineGetKeySize
in class BaseCipherSpi
protected int engineGetOutputSize(int inputLen)
engineGetOutputSize
in class BaseCipherSpi
protected AlgorithmParameters engineGetParameters()
engineGetParameters
in class BaseCipherSpi
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode
in class BaseCipherSpi
NoSuchAlgorithmException
protected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding
in class BaseCipherSpi
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)
engineUpdate
in class CipherSpi
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
Copyright © 2016 BouncyCastle.org. All rights reserved.