| Constructor | Description |
|---|---|
ECNRSigner() |
| Modifier and Type | Method | Description |
|---|---|---|
java.math.BigInteger[] |
generateSignature(byte[] digest) |
generate a signature for the given message using the key we were
initialised with.
|
void |
init(boolean forSigning,
CipherParameters param) |
initialise the signer for signature generation or signature
verification.
|
boolean |
verifySignature(byte[] digest,
java.math.BigInteger r,
java.math.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)
DSApublic java.math.BigInteger[] generateSignature(byte[] digest)
generateSignature in interface DSAdigest - the digest to be signed.DataLengthException - if the digest is longer than the key allowspublic boolean verifySignature(byte[] digest,
java.math.BigInteger r,
java.math.BigInteger s)
verifySignature in interface DSAdigest - 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 allows