Constructor and Description |
---|
ECNRSigner() |
Modifier and Type | Method and Description |
---|---|
BigInteger[] |
generateSignature(byte[] digest)
generate a signature for the given message using the key we were
initialised with.
|
BigInteger |
getOrder()
Get the order of the group that the r, s values in signatures belong to.
|
byte[] |
getRecoveredMessage(BigInteger r,
BigInteger s)
Returns the data used for the signature generation, assuming the public key passed
to init() is correct.
|
void |
init(boolean forSigning,
CipherParameters param)
Initialise the signer.
|
boolean |
verifySignature(byte[] digest,
BigInteger r,
BigInteger s)
return true if the value r and s represent a signature for the
message passed in.
|
public void init(boolean forSigning, CipherParameters param)
public BigInteger getOrder()
DSAExt
public BigInteger[] generateSignature(byte[] digest)
generateSignature
in interface DSA
digest
- the digest to be signed.DataLengthException
- if the digest is longer than the key allowspublic boolean verifySignature(byte[] digest, BigInteger r, BigInteger s)
verifySignature
in interface DSA
digest
- the digest to be verified.r
- the r value of the signature.s
- the s value of the signature.DataLengthException
- if the digest is longer than the key allowspublic byte[] getRecoveredMessage(BigInteger r, BigInteger s)
Copyright © 2021 BouncyCastle.org. All rights reserved.