public class SM2Signer extends Object implements DSA, ECConstants
| Constructor and Description |
|---|
SM2Signer() |
| Modifier and Type | Method and Description |
|---|---|
protected BigInteger |
calculateE(byte[] message) |
protected ECMultiplier |
createBasePointMultiplier() |
BigInteger[] |
generateSignature(byte[] message)
sign the passed in message (usually the output of a hash function).
|
void |
init(boolean forSigning,
CipherParameters param)
initialise the signer for signature generation or signature
verification.
|
boolean |
verifySignature(byte[] message,
BigInteger r,
BigInteger s)
verify the message message against the signature values r and s.
|
public void init(boolean forSigning,
CipherParameters param)
DSApublic BigInteger[] generateSignature(byte[] message)
DSAgenerateSignature in interface DSAmessage - the message to be signed.public boolean verifySignature(byte[] message,
BigInteger r,
BigInteger s)
DSAverifySignature in interface DSAmessage - the message that was supposed to have been signed.r - the r signature value.s - the s signature value.protected ECMultiplier createBasePointMultiplier()
protected BigInteger calculateE(byte[] message)
Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.