Class BaseCipherSpi
- java.lang.Object
-
- javax.crypto.CipherSpi
-
- org.bouncycastle.jcajce.provider.asymmetric.util.BaseCipherSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BaseCipherSpi.ErasableOutputStream
-
Field Summary
Fields Modifier and Type Field Description protected AlgorithmParameters
engineParams
protected Wrapper
wrapEngine
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseCipherSpi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AlgorithmParameters
createParametersInstance(String algorithm)
protected int
engineGetBlockSize()
protected byte[]
engineGetIV()
protected int
engineGetKeySize(Key key)
protected int
engineGetOutputSize(int inputLen)
protected AlgorithmParameters
engineGetParameters()
protected void
engineSetMode(String mode)
protected void
engineSetPadding(String padding)
protected Key
engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
protected byte[]
engineWrap(Key key)
-
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineDoFinal, engineDoFinal, engineInit, engineInit, engineInit, engineUpdate, engineUpdate, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
-
-
-
Field Detail
-
engineParams
protected AlgorithmParameters engineParams
-
wrapEngine
protected Wrapper wrapEngine
-
-
Method Detail
-
engineGetBlockSize
protected int engineGetBlockSize()
- Specified by:
engineGetBlockSize
in classCipherSpi
-
engineGetIV
protected byte[] engineGetIV()
- Specified by:
engineGetIV
in classCipherSpi
-
engineGetKeySize
protected int engineGetKeySize(Key key)
- Overrides:
engineGetKeySize
in classCipherSpi
-
engineGetOutputSize
protected int engineGetOutputSize(int inputLen)
- Specified by:
engineGetOutputSize
in classCipherSpi
-
engineGetParameters
protected AlgorithmParameters engineGetParameters()
- Specified by:
engineGetParameters
in classCipherSpi
-
createParametersInstance
protected final AlgorithmParameters createParametersInstance(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
-
engineSetMode
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
- Specified by:
engineSetMode
in classCipherSpi
- Throws:
NoSuchAlgorithmException
-
engineSetPadding
protected void engineSetPadding(String padding) throws NoSuchPaddingException
- Specified by:
engineSetPadding
in classCipherSpi
- Throws:
NoSuchPaddingException
-
engineWrap
protected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException
- Overrides:
engineWrap
in classCipherSpi
- Throws:
IllegalBlockSizeException
InvalidKeyException
-
engineUnwrap
protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException
- Overrides:
engineUnwrap
in classCipherSpi
- Throws:
InvalidKeyException
-
-