Class RSACipher
- java.lang.Object
-
- javax.crypto.CipherSpi
-
- com.fortanix.sdkms.jce.provider.ciphers.RSACipher
-
- Direct Known Subclasses:
RSACipher.RSAECBOaepPadding,RSACipher.RSAECBSHA1OaepPadding,RSACipher.RSAECBSHA256OaepPadding,RSACipher.RSAECBSHA384OaepPadding,RSACipher.RSAECBSHA512OaepPadding,RSACipher.RSAOAEPMgf1SHA1,RSACipher.RSAOAEPMgf1SHA256,RSACipher.RSAOAEPMgf1SHA384,RSACipher.RSAOAEPMgf1SHA512,RSACipher.RSAPKCSV15
public abstract class RSACipher extends CipherSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRSACipher.RSAECBOaepPaddingstatic classRSACipher.RSAECBSHA1OaepPaddingstatic classRSACipher.RSAECBSHA256OaepPaddingstatic classRSACipher.RSAECBSHA384OaepPaddingstatic classRSACipher.RSAECBSHA512OaepPaddingstatic classRSACipher.RSAOAEPMgf1SHA1static classRSACipher.RSAOAEPMgf1SHA256static classRSACipher.RSAOAEPMgf1SHA384static classRSACipher.RSAOAEPMgf1SHA512static classRSACipher.RSAPKCSV15
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]engineDoFinal(byte[] input, int inputOffset, int inputLen)protected intengineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)protected intengineGetBlockSize()protected byte[]engineGetIV()protected intengineGetKeySize(Key key)protected intengineGetOutputSize(int inputLen)protected AlgorithmParametersengineGetParameters()protected voidengineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)protected voidengineInit(int opmode, Key key, SecureRandom random)protected voidengineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)protected voidengineSetMode(String mode)protected voidengineSetPadding(String padding)protected KeyengineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)protected byte[]engineUpdate(byte[] input, int inputOffset, int inputLen)protected intengineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)protected byte[]engineWrap(Key keyToWrap)-
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
-
-
-
Constructor Detail
-
RSACipher
public RSACipher()
-
RSACipher
public RSACipher(String mode)
-
-
Method Detail
-
engineDoFinal
protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException- Specified by:
engineDoFinalin classCipherSpi- Throws:
IllegalBlockSizeExceptionBadPaddingException
-
engineDoFinal
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException- Specified by:
engineDoFinalin classCipherSpi- Throws:
ShortBufferExceptionIllegalBlockSizeExceptionBadPaddingException
-
engineGetBlockSize
protected int engineGetBlockSize()
- Specified by:
engineGetBlockSizein classCipherSpi
-
engineGetIV
protected byte[] engineGetIV()
- Specified by:
engineGetIVin classCipherSpi
-
engineGetOutputSize
protected int engineGetOutputSize(int inputLen)
- Specified by:
engineGetOutputSizein classCipherSpi
-
engineGetParameters
protected AlgorithmParameters engineGetParameters()
- Specified by:
engineGetParametersin classCipherSpi
-
engineInit
protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException- Specified by:
engineInitin classCipherSpi- Throws:
InvalidKeyException
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException- Specified by:
engineInitin classCipherSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException- Specified by:
engineInitin classCipherSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineSetMode
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
- Specified by:
engineSetModein classCipherSpi- Throws:
NoSuchAlgorithmException
-
engineSetPadding
protected void engineSetPadding(String padding) throws NoSuchPaddingException
- Specified by:
engineSetPaddingin classCipherSpi- Throws:
NoSuchPaddingException
-
engineUpdate
protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)- Specified by:
engineUpdatein classCipherSpi
-
engineUpdate
protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException- Specified by:
engineUpdatein classCipherSpi- Throws:
ShortBufferException
-
engineWrap
protected byte[] engineWrap(Key keyToWrap) throws IllegalBlockSizeException, InvalidKeyException
- Overrides:
engineWrapin classCipherSpi- Throws:
IllegalBlockSizeExceptionInvalidKeyException
-
engineUnwrap
protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException, NoSuchAlgorithmException
- Overrides:
engineUnwrapin classCipherSpi- Throws:
InvalidKeyExceptionNoSuchAlgorithmException
-
engineGetKeySize
protected int engineGetKeySize(Key key) throws InvalidKeyException
- Overrides:
engineGetKeySizein classCipherSpi- Throws:
InvalidKeyException
-
-