Package org.bouncycastle.crypto.signers
Class DSTU4145Signer
java.lang.Object
org.bouncycastle.crypto.signers.DSTU4145Signer
DSTU 4145-2002
National Ukrainian standard of digital signature based on elliptic curves (DSTU 4145-2002).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ECMultiplier
generateSignature
(byte[] message) sign the passed in message (usually the output of a hash function).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, BigInteger r, BigInteger s) verify the message message against the signature values r and s.
-
Constructor Details
-
DSTU4145Signer
public DSTU4145Signer()
-
-
Method Details
-
init
Description copied from interface:DSA
initialise the signer for signature generation or signature verification. -
getOrder
Description copied from interface:DSAExt
Get the order of the group that the r, s values in signatures belong to. -
generateSignature
Description copied from interface:DSA
sign the passed in message (usually the output of a hash function).- Specified by:
generateSignature
in interfaceDSA
- Parameters:
message
- the message to be signed.- Returns:
- two big integers representing the r and s values respectively.
-
verifySignature
Description copied from interface:DSA
verify the message message against the signature values r and s.- Specified by:
verifySignature
in interfaceDSA
- Parameters:
message
- the message that was supposed to have been signed.r
- the r signature value.s
- the s signature value.
-
createBasePointMultiplier
-