Package net.i2p.crypto.elgamal
Class ElGamalSigEngine
java.lang.Object
java.security.SignatureSpi
java.security.Signature
net.i2p.crypto.elgamal.ElGamalSigEngine
Deprecated.
unused, unsupported by SigType or SigUtil, may need constant-time fixes
ElG signatures with SHA-256
ref: https://en.wikipedia.org/wiki/ElGamal_signature_scheme
- Since:
- 0.9.25
-
Field Summary
Fields inherited from class java.security.Signature
SIGN, state, UNINITIALIZED, VERIFYFields inherited from class java.security.SignatureSpi
appRandom -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.No specific hash requested, allows any ElGamal key.ElGamalSigEngine(MessageDigest digest) Deprecated.Specific hash requested, only matching keys will be allowed. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectengineGetParameter(String param) Deprecated.protected voidengineInitSign(PrivateKey privateKey) Deprecated.protected voidengineInitVerify(PublicKey publicKey) Deprecated.protected voidengineSetParameter(String param, Object value) Deprecated.replaced with thisprotected byte[]Deprecated.protected voidengineUpdate(byte b) Deprecated.protected voidengineUpdate(byte[] b, int off, int len) Deprecated.protected booleanengineVerify(byte[] sigBytes) Deprecated.Methods inherited from class java.security.Signature
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verifyMethods inherited from class java.security.SignatureSpi
engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify
-
Constructor Details
-
ElGamalSigEngine
public ElGamalSigEngine()Deprecated.No specific hash requested, allows any ElGamal key. -
ElGamalSigEngine
Deprecated.Specific hash requested, only matching keys will be allowed.- Parameters:
digest- the hash algorithm that keys must have to sign or verify.
-
-
Method Details
-
engineInitSign
Deprecated.- Specified by:
engineInitSignin classSignatureSpi- Throws:
InvalidKeyException
-
engineInitVerify
Deprecated.- Specified by:
engineInitVerifyin classSignatureSpi- Throws:
InvalidKeyException
-
engineUpdate
Deprecated.- Specified by:
engineUpdatein classSignatureSpi- Throws:
SignatureException
-
engineUpdate
Deprecated.- Specified by:
engineUpdatein classSignatureSpi- Throws:
SignatureException
-
engineSign
Deprecated.- Specified by:
engineSignin classSignatureSpi- Returns:
- ASN.1 R,S
- Throws:
SignatureException
-
engineVerify
Deprecated.- Specified by:
engineVerifyin classSignatureSpi- Parameters:
sigBytes- ASN.1 R,S- Throws:
SignatureException
-
engineSetParameter
Deprecated.replaced with this- Specified by:
engineSetParameterin classSignatureSpi
-
engineGetParameter
Deprecated.- Specified by:
engineGetParameterin classSignatureSpi
-