public final class ElGamalSigEngine extends Signature
SIGN, state, UNINITIALIZED, VERIFYappRandom| Constructor | Description |
|---|---|
ElGamalSigEngine() |
No specific hash requested, allows any ElGamal key.
|
ElGamalSigEngine(MessageDigest digest) |
Specific hash requested, only matching keys will be allowed.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected Object |
engineGetParameter(String param) |
Deprecated.
|
protected void |
engineInitSign(PrivateKey privateKey) |
|
protected void |
engineInitVerify(PublicKey publicKey) |
|
protected void |
engineSetParameter(String param,
Object value) |
Deprecated.
replaced with this
|
protected byte[] |
engineSign() |
|
protected void |
engineUpdate(byte b) |
|
protected void |
engineUpdate(byte[] b,
int off,
int len) |
|
protected boolean |
engineVerify(byte[] sigBytes) |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verifyengineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerifypublic ElGamalSigEngine()
public ElGamalSigEngine(MessageDigest digest)
digest - the hash algorithm that keys must have to sign or verify.protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
engineInitSign in class SignatureSpiInvalidKeyExceptionprotected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
engineInitVerify in class SignatureSpiInvalidKeyExceptionprotected void engineUpdate(byte b)
throws SignatureException
engineUpdate in class SignatureSpiSignatureExceptionprotected void engineUpdate(byte[] b,
int off,
int len)
throws SignatureException
engineUpdate in class SignatureSpiSignatureExceptionprotected byte[] engineSign()
throws SignatureException
engineSign in class SignatureSpiSignatureExceptionprotected boolean engineVerify(byte[] sigBytes)
throws SignatureException
engineVerify in class SignatureSpisigBytes - ASN.1 R,SSignatureExceptionprotected void engineSetParameter(String param, Object value)
engineSetParameter in class SignatureSpiprotected Object engineGetParameter(String param)
engineGetParameter in class SignatureSpi