Class DSAPlainDigestSigner

  • All Implemented Interfaces:
    org.bouncycastle.crypto.Signer

    public class DSAPlainDigestSigner
    extends Object
    implements org.bouncycastle.crypto.Signer
    Plain-DSA signer. The signature is not encoded as ASN.1 structure, but just the concatenation of two integer (r and s) in format of byte array.
    Since:
    2.0.0
    Author:
    Lijun Liao (xipki)
    • Constructor Detail

      • DSAPlainDigestSigner

        public DSAPlainDigestSigner​(org.bouncycastle.crypto.DSA signer,
                                    org.bouncycastle.crypto.Digest digest)
    • Method Detail

      • init

        public void init​(boolean forSigning,
                         org.bouncycastle.crypto.CipherParameters parameters)
        Specified by:
        init in interface org.bouncycastle.crypto.Signer
      • update

        public void update​(byte input)
        Specified by:
        update in interface org.bouncycastle.crypto.Signer
      • update

        public void update​(byte[] input,
                           int inOff,
                           int length)
        Specified by:
        update in interface org.bouncycastle.crypto.Signer
      • generateSignature

        public byte[] generateSignature()
        Specified by:
        generateSignature in interface org.bouncycastle.crypto.Signer
      • verifySignature

        public boolean verifySignature​(byte[] signature)
        Specified by:
        verifySignature in interface org.bouncycastle.crypto.Signer
      • reset

        public void reset()
        Specified by:
        reset in interface org.bouncycastle.crypto.Signer