|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.signers.ECNRSigner
public class ECNRSigner
EC-NR as described in IEEE 1363-2000
| Constructor Summary | |
|---|---|
ECNRSigner()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ECNRSigner()
| Method Detail |
|---|
public void init(boolean forSigning,
CipherParameters param)
DSA
init in interface DSAforSigning - true if we are generating a signature, false
otherwise.param - key parameters for signature generation.public java.math.BigInteger[] generateSignature(byte[] digest)
generateSignature in interface DSAdigest - the digest to be signed.
DataLengthException - if the digest is longer than the key allows
public 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
|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||