| org.bouncycastle.crypto.DSA
All known Subclasses: org.bouncycastle.crypto.signers.ECNRSigner, org.bouncycastle.crypto.signers.ECDSASigner, org.bouncycastle.crypto.signers.ECGOST3410Signer, org.bouncycastle.crypto.signers.DSASigner, org.bouncycastle.crypto.signers.GOST3410Signer,
DSA | public interface DSA (Code) | | interface for classes implementing algorithms modeled similar to the Digital Signature Alorithm.
|
Method Summary | |
public BigInteger[] | generateSignature(byte[] message) sign the passed in message (usually the output of a hash function).
Parameters: message - the message to be signed. | public void | init(boolean forSigning, CipherParameters param) initialise the signer for signature generation or signature
verification. | public boolean | verifySignature(byte[] message, BigInteger r, BigInteger s) verify the message message against the signature values r and s. |
generateSignature | public BigInteger[] generateSignature(byte[] message)(Code) | | sign the passed in message (usually the output of a hash function).
Parameters: message - the message to be signed. two big integers representing the r and s values respectively. |
init | public void init(boolean forSigning, CipherParameters param)(Code) | | initialise the signer for signature generation or signature
verification.
Parameters: forSigning - true if we are generating a signature, falseotherwise. Parameters: param - key parameters for signature generation. |
verifySignature | public boolean verifySignature(byte[] message, BigInteger r, BigInteger s)(Code) | | verify the message message against the signature values r and s.
Parameters: message - the message that was supposed to have been signed. Parameters: r - the r signature value. Parameters: s - the s signature value. |
|
|