| Modifier and Type | Field and Description |
|---|---|
| private ByteArrayOutputStream | buffer
Buffer to hold value to be signed or verified. |
| private OpenSSLKey | key
The current OpenSSL key we're operating on. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | engineGetParameter(String
the string name of the parameter. param)Implements abstract java. |
| 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. |
| 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 boolean | engineVerify(byte[]
the signature bytes to be verified. sigBytes)Implements abstract java. |
| private static OpenSSLKey |
| buffer | back to summary |
|---|---|
| private ByteArrayOutputStream buffer Buffer to hold value to be signed or verified. | |
| key | back to summary |
|---|---|
| private OpenSSLKey key The current OpenSSL key we're operating on. | |
| OpenSSLSignatureRawECDSA | back to summary |
|---|---|
| public OpenSSLSignatureRawECDSA() | |
| engineGetParameter | back to summary |
|---|---|
| protected Object engineGetParameter(String param) throws InvalidParameterException Implements abstract java. Doc from java. 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. 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.
| |
| engineVerify | back to summary |
|---|---|
| protected boolean engineVerify(byte[] sigBytes) throws SignatureException Implements abstract java. Doc from java. Verifies the passed-in signature.
| |
| verifyKey | back to summary |
|---|---|
| private static OpenSSLKey verifyKey(OpenSSLKey key) throws InvalidKeyException | |