public final class ElGamalSigEngine extends Signature
SIGN, state, UNINITIALIZED, VERIFY
appRandom
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 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) |
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verify
engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify
public 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 SignatureSpi
InvalidKeyException
protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
engineInitVerify
in class SignatureSpi
InvalidKeyException
protected void engineUpdate(byte b) throws SignatureException
engineUpdate
in class SignatureSpi
SignatureException
protected void engineUpdate(byte[] b, int off, int len) throws SignatureException
engineUpdate
in class SignatureSpi
SignatureException
protected byte[] engineSign() throws SignatureException
engineSign
in class SignatureSpi
SignatureException
protected boolean engineVerify(byte[] sigBytes) throws SignatureException
engineVerify
in class SignatureSpi
sigBytes
- ASN.1 R,SSignatureException
protected void engineSetParameter(String param, Object value)
engineSetParameter
in class SignatureSpi
protected Object engineGetParameter(String param)
engineGetParameter
in class SignatureSpi