public final class ElGamalSigEngine extends Signature
SIGN, state, UNINITIALIZED, VERIFYappRandom| Constructor and 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 and Description |
|---|---|
protected void |
engineInitSign(PrivateKey privateKey) |
protected void |
engineInitVerify(PublicKey publicKey) |
protected byte[] |
engineSign() |
protected void |
engineUpdate(byte b) |
protected void |
engineUpdate(byte[] b,
int off,
int len) |
protected boolean |
engineVerify(byte[] sigBytes) |
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verifyengineGetParameter, engineGetParameters, engineInitSign, engineSetParameter, 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 byte[] engineSign()
throws SignatureException
engineSign in class SignatureSpiSignatureExceptionprotected void engineUpdate(byte b)
throws SignatureException
engineUpdate in class SignatureSpiSignatureExceptionprotected void engineUpdate(byte[] b,
int off,
int len)
throws SignatureException
engineUpdate in class SignatureSpiSignatureExceptionprotected boolean engineVerify(byte[] sigBytes)
throws SignatureException
engineVerify in class SignatureSpisigBytes - ASN.1 R,SSignatureException