Package org.conscrypt
Class OpenSSLSignature
- java.lang.Object
-
- java.security.SignatureSpi
-
- org.conscrypt.OpenSSLSignature
-
- Direct Known Subclasses:
OpenSSLSignature.MD5RSA,OpenSSLSignature.SHA1ECDSA,OpenSSLSignature.SHA1RSA,OpenSSLSignature.SHA1RSAPSS,OpenSSLSignature.SHA224ECDSA,OpenSSLSignature.SHA224RSA,OpenSSLSignature.SHA224RSAPSS,OpenSSLSignature.SHA256ECDSA,OpenSSLSignature.SHA256RSA,OpenSSLSignature.SHA256RSAPSS,OpenSSLSignature.SHA384ECDSA,OpenSSLSignature.SHA384RSA,OpenSSLSignature.SHA384RSAPSS,OpenSSLSignature.SHA512ECDSA,OpenSSLSignature.SHA512RSA,OpenSSLSignature.SHA512RSAPSS
@Internal public class OpenSSLSignature extends SignatureSpi
Implements the subset of the JDK Signature interface needed for signature verification using OpenSSL.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenSSLSignature.MD5RSAstatic classOpenSSLSignature.SHA1ECDSAstatic classOpenSSLSignature.SHA1RSAstatic classOpenSSLSignature.SHA1RSAPSSstatic classOpenSSLSignature.SHA224ECDSAstatic classOpenSSLSignature.SHA224RSAstatic classOpenSSLSignature.SHA224RSAPSSstatic classOpenSSLSignature.SHA256ECDSAstatic classOpenSSLSignature.SHA256RSAstatic classOpenSSLSignature.SHA256RSAPSSstatic classOpenSSLSignature.SHA384ECDSAstatic classOpenSSLSignature.SHA384RSAstatic classOpenSSLSignature.SHA384RSAPSSstatic classOpenSSLSignature.SHA512ECDSAstatic classOpenSSLSignature.SHA512RSAstatic classOpenSSLSignature.SHA512RSAPSS
-
Field Summary
-
Fields inherited from class java.security.SignatureSpi
appRandom
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidconfigureEVP_PKEY_CTX(long ctx)Configures the public key algorithm context (EVP_PKEY_CTX) associated with this operation.protected ObjectengineGetParameter(String param)Deprecated.protected voidengineInitSign(PrivateKey privateKey)protected voidengineInitVerify(PublicKey publicKey)protected voidengineSetParameter(String param, Object value)Deprecated.protected byte[]engineSign()protected voidengineUpdate(byte input)protected voidengineUpdate(byte[] input, int offset, int len)protected voidengineUpdate(ByteBuffer input)protected booleanengineVerify(byte[] sigBytes)protected longgetEVP_PKEY_CTX()Returns the public key algorithm context (EVP_PKEY_CTXreference) associated with this operation or0if operation hasn't been initialized.-
Methods inherited from class java.security.SignatureSpi
clone, engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineVerify
-
-
-
-
Method Detail
-
configureEVP_PKEY_CTX
protected void configureEVP_PKEY_CTX(long ctx) throws InvalidAlgorithmParameterExceptionConfigures the public key algorithm context (EVP_PKEY_CTX) associated with this operation.The default implementation does nothing.
- Parameters:
ctx- reference to the context (EVP_PKEY_CTX).- Throws:
InvalidAlgorithmParameterException
-
engineUpdate
protected void engineUpdate(byte input)
- Specified by:
engineUpdatein classSignatureSpi
-
engineUpdate
protected void engineUpdate(byte[] input, int offset, int len)- Specified by:
engineUpdatein classSignatureSpi
-
engineUpdate
protected void engineUpdate(ByteBuffer input)
- Overrides:
engineUpdatein classSignatureSpi
-
engineGetParameter
@Deprecated protected Object engineGetParameter(String param) throws InvalidParameterException
Deprecated.- Specified by:
engineGetParameterin classSignatureSpi- Throws:
InvalidParameterException
-
engineInitSign
protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
- Specified by:
engineInitSignin classSignatureSpi- Throws:
InvalidKeyException
-
engineInitVerify
protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
- Specified by:
engineInitVerifyin classSignatureSpi- Throws:
InvalidKeyException
-
engineSetParameter
@Deprecated protected void engineSetParameter(String param, Object value) throws InvalidParameterException
Deprecated.- Specified by:
engineSetParameterin classSignatureSpi- Throws:
InvalidParameterException
-
engineSign
protected byte[] engineSign() throws SignatureException- Specified by:
engineSignin classSignatureSpi- Throws:
SignatureException
-
engineVerify
protected boolean engineVerify(byte[] sigBytes) throws SignatureException- Specified by:
engineVerifyin classSignatureSpi- Throws:
SignatureException
-
getEVP_PKEY_CTX
protected final long getEVP_PKEY_CTX()
Returns the public key algorithm context (EVP_PKEY_CTXreference) associated with this operation or0if operation hasn't been initialized.
-
-