org.bouncycastle.crypto.signers

## Class DSTU4145Signer

- java.lang.Object
- - org.bouncycastle.crypto.signers.DSTU4145Signer

- All Implemented Interfaces:
    DSA, DSAExt

      public class DSTU4145Signer
      extends java.lang.Object
      implements DSAExt

  DSTU 4145-2002

  National Ukrainian standard of digital signature based on elliptic curves (DSTU 4145-2002).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DSTU4145Signer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

    - #### DSTU4145Signer

          public DSTU4145Signer()

  - ### Method Detail

    - #### init

          public void init(boolean forSigning,
                           CipherParameters param)

      Description copied from interface: `DSA`
      initialise the signer for signature generation or signature verification.
      Specified by:
        `init` in interface `DSA`
      Parameters:
        `forSigning` - true if we are generating a signature, false otherwise.
        `param` - key parameters for signature generation.

    - #### getOrder

          public java.math.BigInteger getOrder()

      Description copied from interface: `DSAExt`
      Get the order of the group that the r, s values in signatures belong to.
      Specified by:
        `getOrder` in interface `DSAExt`

    - #### generateSignature

          public java.math.BigInteger[] generateSignature(byte[] message)

      Description copied from interface: `DSA`
      sign the passed in message (usually the output of a hash function).
      Specified by:
        `generateSignature` in interface `DSA`
      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: `DSA`
      verify the message message against the signature values r and s.
      Specified by:
        `verifySignature` in interface `DSA`
      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()