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 classstatic final classstatic final classstatic final classstatic final classNested classes/interfaces inherited from class org.conscrypt.OpenSSLCipherRSA
OpenSSLCipherRSA.DirectRSA, OpenSSLCipherRSA.OAEP, OpenSSLCipherRSA.PKCS1, OpenSSLCipherRSA.Raw -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private longprivate longprivate intprivate NativeRef.EVP_PKEY_CTXFields inherited from class org.conscrypt.OpenSSLCipherRSA
encrypting, key, padding, usingPrivateKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) intdoCryptoOperation(byte[] tmpBuf, byte[] output) protected AlgorithmParametersprotected voidengineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) protected voidengineInit(int opmode, Key key, AlgorithmParameterSpec spec, SecureRandom random) (package private) voidengineInitInternal(int opmode, Key key, AlgorithmParameterSpec spec) protected voidengineSetPadding(String padding) (package private) intprivate voidMethods inherited from class org.conscrypt.OpenSSLCipherRSA
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineGetOutputSize, engineInit, engineSetMode, engineUnwrap, engineUpdate, engineUpdate, engineWrap, isInitialized, keySizeBytesMethods 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:
engineGetParametersin classOpenSSLCipherRSA
-
engineSetPadding
- Overrides:
engineSetPaddingin classOpenSSLCipherRSA- Throws:
NoSuchPaddingException
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec spec, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Overrides:
engineInitin classOpenSSLCipherRSA- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Overrides:
engineInitin classOpenSSLCipherRSA- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineInitInternal
void engineInitInternal(int opmode, Key key, AlgorithmParameterSpec spec) throws InvalidKeyException, InvalidAlgorithmParameterException - Overrides:
engineInitInternalin classOpenSSLCipherRSA- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
doCryptoInit
void doCryptoInit(AlgorithmParameterSpec spec) throws InvalidAlgorithmParameterException, InvalidKeyException - Overrides:
doCryptoInitin classOpenSSLCipherRSA- Throws:
InvalidAlgorithmParameterExceptionInvalidKeyException
-
paddedBlockSizeBytes
int paddedBlockSizeBytes()- Overrides:
paddedBlockSizeBytesin classOpenSSLCipherRSA
-
readOAEPParameters
-
doCryptoOperation
int doCryptoOperation(byte[] tmpBuf, byte[] output) throws BadPaddingException, IllegalBlockSizeException - Specified by:
doCryptoOperationin classOpenSSLCipherRSA- Throws:
BadPaddingExceptionIllegalBlockSizeException
-