Package org.conscrypt
Class OpenSSLCipherRSA.OAEP
java.lang.Object
javax.crypto.CipherSpi
org.conscrypt.OpenSSLCipherRSA
org.conscrypt.OpenSSLCipherRSA.OAEP
- Direct Known Subclasses:
OpenSSLCipherRSA.OAEP.SHA1
,OpenSSLCipherRSA.OAEP.SHA224
,OpenSSLCipherRSA.OAEP.SHA256
,OpenSSLCipherRSA.OAEP.SHA384
,OpenSSLCipherRSA.OAEP.SHA512
- Enclosing class:
OpenSSLCipherRSA
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
static final class
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLCipherRSA
OpenSSLCipherRSA.DirectRSA, OpenSSLCipherRSA.OAEP, OpenSSLCipherRSA.PKCS1, OpenSSLCipherRSA.Raw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private long
private long
private int
private NativeRef.EVP_PKEY_CTX
Fields inherited from class org.conscrypt.OpenSSLCipherRSA
encrypting, key, padding, usingPrivateKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) int
doCryptoOperation
(byte[] tmpBuf, byte[] output) protected AlgorithmParameters
protected void
engineInit
(int opmode, Key key, AlgorithmParameters params, SecureRandom random) protected void
engineInit
(int opmode, Key key, AlgorithmParameterSpec spec, SecureRandom random) (package private) void
engineInitInternal
(int opmode, Key key, AlgorithmParameterSpec spec) protected void
engineSetPadding
(String padding) (package private) int
private void
Methods inherited from class org.conscrypt.OpenSSLCipherRSA
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineGetOutputSize, engineInit, engineSetMode, engineUnwrap, engineUpdate, engineUpdate, engineWrap, isInitialized, keySizeBytes
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
Field Details
-
oaepMd
private long oaepMd -
oaepMdSizeBytes
private int oaepMdSizeBytes -
mgf1Md
private long mgf1Md -
label
private byte[] label -
pkeyCtx
-
-
Constructor Details
-
OAEP
public OAEP(long defaultMd, int defaultMdSizeBytes)
-
-
Method Details
-
engineGetParameters
- Overrides:
engineGetParameters
in classOpenSSLCipherRSA
-
engineSetPadding
- Overrides:
engineSetPadding
in classOpenSSLCipherRSA
- Throws:
NoSuchPaddingException
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec spec, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Overrides:
engineInit
in classOpenSSLCipherRSA
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Overrides:
engineInit
in classOpenSSLCipherRSA
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineInitInternal
void engineInitInternal(int opmode, Key key, AlgorithmParameterSpec spec) throws InvalidKeyException, InvalidAlgorithmParameterException - Overrides:
engineInitInternal
in classOpenSSLCipherRSA
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
doCryptoInit
void doCryptoInit(AlgorithmParameterSpec spec) throws InvalidAlgorithmParameterException, InvalidKeyException - Overrides:
doCryptoInit
in classOpenSSLCipherRSA
- Throws:
InvalidAlgorithmParameterException
InvalidKeyException
-
paddedBlockSizeBytes
int paddedBlockSizeBytes()- Overrides:
paddedBlockSizeBytes
in classOpenSSLCipherRSA
-
readOAEPParameters
-
doCryptoOperation
int doCryptoOperation(byte[] tmpBuf, byte[] output) throws BadPaddingException, IllegalBlockSizeException - Specified by:
doCryptoOperation
in classOpenSSLCipherRSA
- Throws:
BadPaddingException
IllegalBlockSizeException
-