public class JCERSACipher extends WrapCipherSpi
| Modifier and Type | Class and Description |
|---|---|
static class |
JCERSACipher.ISO9796d1Padding |
static class |
JCERSACipher.NoPadding
classes that inherit from us.
|
static class |
JCERSACipher.OAEPPadding |
static class |
JCERSACipher.PKCS1v1_5Padding |
static class |
JCERSACipher.PKCS1v1_5Padding_PrivateOnly |
static class |
JCERSACipher.PKCS1v1_5Padding_PublicOnly |
WrapCipherSpi.RC2WrappbeHash, pbeIvSize, pbeKeySize, pbeType, wrapEngine| Constructor and Description |
|---|
JCERSACipher(AsymmetricBlockCipher engine) |
JCERSACipher(boolean publicKeyOnly,
boolean privateKeyOnly,
AsymmetricBlockCipher engine) |
JCERSACipher(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 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 byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
engineUnwrap, engineWrapengineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAADpublic JCERSACipher(AsymmetricBlockCipher engine)
public JCERSACipher(OAEPParameterSpec pSpec)
public JCERSACipher(boolean publicKeyOnly,
boolean privateKeyOnly,
AsymmetricBlockCipher engine)
protected int engineGetBlockSize()
engineGetBlockSize in class WrapCipherSpiprotected byte[] engineGetIV()
engineGetIV in class WrapCipherSpiprotected int engineGetKeySize(Key key)
engineGetKeySize in class WrapCipherSpiprotected int engineGetOutputSize(int inputLen)
engineGetOutputSize in class WrapCipherSpiprotected AlgorithmParameters engineGetParameters()
engineGetParameters in class WrapCipherSpiprotected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode in class WrapCipherSpiNoSuchAlgorithmExceptionprotected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding in class WrapCipherSpiNoSuchPaddingExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class WrapCipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class WrapCipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
Key key,
SecureRandom random)
throws InvalidKeyException
engineInit in class WrapCipherSpiInvalidKeyExceptionprotected byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
engineUpdate in class WrapCipherSpiprotected int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
engineUpdate in class WrapCipherSpiprotected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class WrapCipherSpiIllegalBlockSizeExceptionBadPaddingExceptionprotected int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class WrapCipherSpiIllegalBlockSizeExceptionBadPaddingExceptionCopyright © 2015. All rights reserved.