Constructor and Description |
---|
DSTU4145Signer() |
Modifier and Type | Method and Description |
---|---|
protected ECMultiplier |
createBasePointMultiplier() |
BigInteger[] |
generateSignature(byte[] message)
sign the passed in message (usually the output of a hash function).
|
BigInteger |
getOrder()
Get the order of the group that the r, s values in signatures belong to.
|
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)
DSA
public BigInteger getOrder()
DSAExt
public BigInteger[] generateSignature(byte[] message)
DSA
generateSignature
in interface DSA
message
- the message to be signed.public boolean verifySignature(byte[] message, BigInteger r, BigInteger s)
DSA
verifySignature
in interface DSA
message
- the message that was supposed to have been signed.r
- the r signature value.s
- the s signature value.protected ECMultiplier createBasePointMultiplier()
Copyright © 2021 BouncyCastle.org. All rights reserved.