Package org.bouncycastle.crypto.signers
Class DSTU4145Signer
- java.lang.Object
-
- org.bouncycastle.crypto.signers.DSTU4145Signer
-
-
Constructor Summary
Constructors Constructor Description DSTU4145Signer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ECMultipliercreateBasePointMultiplier()java.math.BigInteger[]generateSignature(byte[] message)sign the passed in message (usually the output of a hash function).java.math.BigIntegergetOrder()Get the order of the group that the r, s values in signatures belong to.voidinit(boolean forSigning, CipherParameters param)initialise the signer for signature generation or signature verification.booleanverifySignature(byte[] message, java.math.BigInteger r, java.math.BigInteger s)verify the message message against the signature values r and s.
-
-
-
Method Detail
-
init
public void init(boolean forSigning, CipherParameters param)Description copied from interface:DSAinitialise the signer for signature generation or signature verification.
-
getOrder
public java.math.BigInteger getOrder()
Description copied from interface:DSAExtGet the order of the group that the r, s values in signatures belong to.
-
generateSignature
public java.math.BigInteger[] generateSignature(byte[] message)
Description copied from interface:DSAsign the passed in message (usually the output of a hash function).- Specified by:
generateSignaturein interfaceDSA- Parameters:
message- the message to be signed.- Returns:
- two big integers representing the r and s values respectively.
-
verifySignature
public boolean verifySignature(byte[] message, java.math.BigInteger r, java.math.BigInteger s)Description copied from interface:DSAverify the message message against the signature values r and s.- Specified by:
verifySignaturein interfaceDSA- Parameters:
message- the message that was supposed to have been signed.r- the r signature value.s- the s signature value.
-
createBasePointMultiplier
protected ECMultiplier createBasePointMultiplier()
-
-