Class CipherSpi
java.lang.Object
javax.crypto.CipherSpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
org.bouncycastle.jcajce.provider.asymmetric.rsa.CipherSpi
- Direct Known Subclasses:
CipherSpi.ISO9796d1Padding
,CipherSpi.NoPadding
,CipherSpi.OAEPPadding
,CipherSpi.PKCS1v1_5Padding
,CipherSpi.PKCS1v1_5Padding_PrivateOnly
,CipherSpi.PKCS1v1_5Padding_PublicOnly
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
classes that inherit from us.static class
static class
static class
static class
Nested classes/interfaces inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
BaseCipherSpi.ErasableOutputStream
-
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
wrapEngine
-
Constructor Summary
ConstructorDescriptionCipherSpi
(boolean publicKeyOnly, boolean privateKeyOnly, AsymmetricBlockCipher engine) CipherSpi
(OAEPParameterSpec pSpec) CipherSpi
(AsymmetricBlockCipher engine) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
engineDoFinal
(byte[] input, int inputOffset, int inputLen) protected int
engineDoFinal
(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) protected int
protected int
engineGetKeySize
(Key key) protected int
engineGetOutputSize
(int inputLen) protected AlgorithmParameters
protected void
engineInit
(int opmode, Key key, AlgorithmParameters params, SecureRandom random) protected void
engineInit
(int opmode, Key key, SecureRandom random) protected void
engineInit
(int opmode, Key key, AlgorithmParameterSpec params, 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) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
createParametersInstance, engineGetIV, engineUnwrap, engineWrap
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
Constructor Details
-
CipherSpi
-
CipherSpi
-
CipherSpi
-
-
Method Details
-
engineGetBlockSize
protected int engineGetBlockSize()- Overrides:
engineGetBlockSize
in classBaseCipherSpi
-
engineGetKeySize
- Overrides:
engineGetKeySize
in classBaseCipherSpi
-
engineGetOutputSize
protected int engineGetOutputSize(int inputLen) - Overrides:
engineGetOutputSize
in classBaseCipherSpi
-
engineGetParameters
- Overrides:
engineGetParameters
in classBaseCipherSpi
-
engineSetMode
- Overrides:
engineSetMode
in classBaseCipherSpi
- Throws:
NoSuchAlgorithmException
-
engineSetPadding
- Overrides:
engineSetPadding
in classBaseCipherSpi
- Throws:
NoSuchPaddingException
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInit
in classCipherSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInit
in classCipherSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineInit
- Specified by:
engineInit
in classCipherSpi
- Throws:
InvalidKeyException
-
engineUpdate
protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) - Specified by:
engineUpdate
in classCipherSpi
-
engineUpdate
protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) - Specified by:
engineUpdate
in classCipherSpi
-
engineDoFinal
protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException - Specified by:
engineDoFinal
in classCipherSpi
- Throws:
IllegalBlockSizeException
BadPaddingException
-
engineDoFinal
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws IllegalBlockSizeException, BadPaddingException, ShortBufferException - Specified by:
engineDoFinal
in classCipherSpi
- Throws:
IllegalBlockSizeException
BadPaddingException
ShortBufferException
-