org.bouncycastle.crypto.signers
public class ECNRSigner extends Object implements DSA
Method Summary | |
---|---|
BigInteger[] | generateSignature(byte[] digest)
generate a signature for the given message using the key we were
initialised with. |
void | init(boolean forSigning, CipherParameters param) |
boolean | verifySignature(byte[] digest, BigInteger r, BigInteger s)
return true if the value r and s represent a signature for the
message passed in. |
Parameters: digest the digest to be signed.
Throws: DataLengthException if the digest is longer than the key allows
Parameters: digest the digest to be verified. r the r value of the signature. s the s value of the signature.
Throws: DataLengthException if the digest is longer than the key allows