| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| public static class | |
| pack-priv abstract static class | OpenSSLSignature.RSAPKCS1Padding
Base class for |
| pack-priv abstract static class | OpenSSLSignature.RSAPSSPadding
Base class for |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private NativeRef. | |
| private final OpenSSLSignature. | engineType
Holds the type of the Java algorithm. |
| private final long | evpMdRef
Digest algorithm (reference to |
| private long | evpPkeyCtx
Public key algorithm context (reference to |
| private OpenSSLKey | key
The current OpenSSL key we're operating on. |
| private boolean | signing
True when engine is initialized to signing. |
| private final byte[] | singleByte
Holds a dummy buffer for writing single bytes to the digest. |
| Access | Constructor and Description |
|---|---|
| private | OpenSSLSignature(long
digest algorithm ( evpMdRef, OpenSSLSignature.EVP_MD reference).Creates a new OpenSSLSignature instance for the given algorithm name. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | configureEVP_PKEY_CTX(long
reference to the context ( ctx)EVP_PKEY_CTX).Configures the public key algorithm context ( |
| protected Object | engineGetParameter(String
the string name of the parameter. param)Implements abstract java.
Deprecated
Gets the value of the specified algorithm parameter.
|
| protected void | engineInitSign(PrivateKey
the private key of the identity whose signature
will be generated. privateKey)Implements abstract java. Signature object with the specified
private key for signing operations.
|
| protected void | engineInitVerify(PublicKey
the public key of the identity whose signature is
going to be verified. publicKey)Implements abstract java. Signature object with the specified
public key for verification operations.
|
| protected void | engineSetParameter(String
the string identifier of the parameter. param, Object the parameter value. value)Implements abstract java.
Deprecated
Sets the specified algorithm parameter to the specified
value.
|
| protected byte[] | engineSign()
Implements abstract java. |
| protected void | engineUpdate(byte
the byte to use for the update. input)Implements abstract java. |
| protected void | engineUpdate(byte[]
the array of bytes input, int the offset to start from in the array of bytes offset, int the number of bytes to use, starting at offset len)Implements abstract java. |
| protected void | engineUpdate(ByteBuffer
the ByteBuffer input)Overrides java. |
| protected boolean | engineVerify(byte[]
the signature bytes to be verified. sigBytes)Implements abstract java. |
| protected final long | getEVP_PKEY_CTX()
Returns the public key algorithm context ( |
| private void | |
| private void |
| ctx | back to summary |
|---|---|
| private NativeRef. | |
| engineType | back to summary |
|---|---|
| private final OpenSSLSignature. Holds the type of the Java algorithm. | |
| evpMdRef | back to summary |
|---|---|
| private final long evpMdRef Digest algorithm (reference to | |
| evpPkeyCtx | back to summary |
|---|---|
| private long evpPkeyCtx Public key algorithm context (reference to | |
| key | back to summary |
|---|---|
| private OpenSSLKey key The current OpenSSL key we're operating on. | |
| signing | back to summary |
|---|---|
| private boolean signing True when engine is initialized to signing. | |
| singleByte | back to summary |
|---|---|
| private final byte[] singleByte Holds a dummy buffer for writing single bytes to the digest. | |
| OpenSSLSignature | back to summary |
|---|---|
| private OpenSSLSignature(long evpMdRef, OpenSSLSignature. Creates a new OpenSSLSignature instance for the given algorithm name.
| |
| checkEngineType | back to summary |
|---|---|
| private void checkEngineType(OpenSSLKey pkey) throws InvalidKeyException | |
| configureEVP_PKEY_CTX | back to summary |
|---|---|
| protected void configureEVP_PKEY_CTX(long ctx) throws InvalidAlgorithmParameterException Configures the public key algorithm context ( The default implementation does nothing.
| |
| engineGetParameter | back to summary |
|---|---|
| protected Object engineGetParameter(String param) throws InvalidParameterException Implements abstract java. Doc from java. Deprecated
Gets the value of the specified algorithm parameter. This method supplies a general-purpose mechanism through which it is possible to get the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.
| |
| engineInitSign | back to summary |
|---|---|
| protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException Implements abstract java. Doc from java. Initializes this
| |
| engineInitVerify | back to summary |
|---|---|
| protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException Implements abstract java. Doc from java. Initializes this
| |
| engineSetParameter | back to summary |
|---|---|
| protected void engineSetParameter(String param, Object value) throws InvalidParameterException Implements abstract java. Doc from java. Deprecated
Sets the specified algorithm parameter to the specified value. This method supplies a general-purpose mechanism through which it is possible to set the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.
| |
| engineSign | back to summary |
|---|---|
| protected byte[] engineSign() throws SignatureException Implements abstract java. Doc from java. Returns the signature bytes of all the data updated so far. The format of the signature depends on the underlying signature scheme.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte input) Implements abstract java. Doc from java. Updates the data to be signed or verified using the specified byte.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte[] input, int offset, int len) Implements abstract java. Doc from java. Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(ByteBuffer input) Overrides java. Doc from java. Updates the data to be signed or verified using the specified
ByteBuffer. Processes the
| |
| engineVerify | back to summary |
|---|---|
| protected boolean engineVerify(byte[] sigBytes) throws SignatureException Implements abstract java. Doc from java. Verifies the passed-in signature.
| |
| getEVP_PKEY_CTX | back to summary |
|---|---|
| protected final long getEVP_PKEY_CTX() Returns the public key algorithm context ( | |
| initInternal | back to summary |
|---|---|
| private void initInternal(OpenSSLKey newKey, boolean signing) throws InvalidKeyException | |
| resetContext | back to summary |
|---|---|
| private void resetContext() throws InvalidAlgorithmParameterException | |
| Modifier and Type | Field and Description |
|---|---|
| public static final OpenSSLSignature. | |
| public static final OpenSSLSignature. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static OpenSSLSignature. | |
| public static OpenSSLSignature. |
| EC | back to summary |
|---|---|
| public static final OpenSSLSignature. | |
| RSA | back to summary |
|---|---|
| public static final OpenSSLSignature. | |
| EngineType | back to summary |
|---|---|
| private EngineType() | |
| valueOf | back to summary |
|---|---|
| public static OpenSSLSignature. | |
| values | back to summary |
|---|---|
| public static OpenSSLSignature. | |
| Access | Constructor and Description |
|---|---|
| public |
| MD5RSA | back to summary |
|---|---|
| public MD5RSA() | |
RSASSA-PKCS1-v1_5 signatures.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | configureEVP_PKEY_CTX(long
reference to the context ( ctx)EVP_PKEY_CTX).Overrides org. EVP_PKEY_CTX) associated with this
operation.
|
| RSAPKCS1Padding | back to summary |
|---|---|
| pack-priv RSAPKCS1Padding(long evpMdRef) | |
| configureEVP_PKEY_CTX | back to summary |
|---|---|
| protected final void configureEVP_PKEY_CTX(long ctx) throws InvalidAlgorithmParameterException Overrides org. Doc from org. Configures the public key algorithm context ( The default implementation does nothing.
| |
RSASSA-PSS signatures.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private String | |
| private long | |
| private int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | configureEVP_PKEY_CTX(long
reference to the context ( ctx)EVP_PKEY_CTX).Overrides org. EVP_PKEY_CTX) associated with this
operation.
|
| protected final AlgorithmParameters | engineGetParameters()
Overrides java. Signature object.
|
| protected final void | engineSetParameter(AlgorithmParameterSpec
the parameters params)Overrides java. Signature object with the specified parameter
values.
|
| contentDigestAlgorithm | back to summary |
|---|---|
| private final String contentDigestAlgorithm | |
| mgf1DigestAlgorithm | back to summary |
|---|---|
| private String mgf1DigestAlgorithm | |
| mgf1EvpMdRef | back to summary |
|---|---|
| private long mgf1EvpMdRef | |
| saltSizeBytes | back to summary |
|---|---|
| private int saltSizeBytes | |
| TRAILER_FIELD_BC_ID | back to summary |
|---|---|
| private static final int TRAILER_FIELD_BC_ID | |
| RSAPSSPadding | back to summary |
|---|---|
| pack-priv RSAPSSPadding(long contentDigestEvpMdRef, String contentDigestAlgorithm, int saltSizeBytes) | |
| configureEVP_PKEY_CTX | back to summary |
|---|---|
| protected final void configureEVP_PKEY_CTX(long ctx) throws InvalidAlgorithmParameterException Overrides org. Doc from org. Configures the public key algorithm context ( The default implementation does nothing.
| |
| engineGetParameters | back to summary |
|---|---|
| protected final AlgorithmParameters engineGetParameters() Overrides java. Doc from java. Returns the parameters used with this The returned parameters may be the same that were used to initialize
this However, if the signature scheme does not support returning
the parameters as
| |
| engineSetParameter | back to summary |
|---|---|
| protected final void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException Overrides java. Doc from java. Initializes this
| |
| Access | Constructor and Description |
|---|---|
| public |
| SHA1ECDSA | back to summary |
|---|---|
| public SHA1ECDSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA1RSA | back to summary |
|---|---|
| public SHA1RSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA1RSAPSS | back to summary |
|---|---|
| public SHA1RSAPSS() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA224ECDSA | back to summary |
|---|---|
| public SHA224ECDSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA224RSA | back to summary |
|---|---|
| public SHA224RSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA224RSAPSS | back to summary |
|---|---|
| public SHA224RSAPSS() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA256ECDSA | back to summary |
|---|---|
| public SHA256ECDSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA256RSA | back to summary |
|---|---|
| public SHA256RSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA256RSAPSS | back to summary |
|---|---|
| public SHA256RSAPSS() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA384ECDSA | back to summary |
|---|---|
| public SHA384ECDSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA384RSA | back to summary |
|---|---|
| public SHA384RSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA384RSAPSS | back to summary |
|---|---|
| public SHA384RSAPSS() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA512ECDSA | back to summary |
|---|---|
| public SHA512ECDSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA512RSA | back to summary |
|---|---|
| public SHA512RSA() | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA512RSAPSS | back to summary |
|---|---|
| public SHA512RSAPSS() | |