|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.signers.DSTU4145Signer
DSTU 4145-2002
National Ukrainian standard of digital signature based on elliptic curves (DSTU 4145-2002).
| Constructor Summary | |
DSTU4145Signer()
|
|
| Method Summary | |
protected ECMultiplier |
createBasePointMultiplier()
|
java.math.BigInteger[] |
generateSignature(byte[] message)
sign the passed in message (usually the output of a hash function). |
java.math.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,
java.math.BigInteger r,
java.math.BigInteger s)
verify the message message against the signature values r and s. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DSTU4145Signer()
| 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 getOrder()
DSAExt
getOrder in interface DSAExtpublic java.math.BigInteger[] generateSignature(byte[] message)
DSA
generateSignature in interface DSAmessage - the message to be signed.
public boolean verifySignature(byte[] message,
java.math.BigInteger r,
java.math.BigInteger s)
DSA
verifySignature in interface DSAmessage - the message that was supposed to have been signed.r - the r signature value.s - the s signature value.protected ECMultiplier createBasePointMultiplier()
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||