|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.signers.DSADigestSigner
| Constructor Summary | |
DSADigestSigner(DSA dsa,
Digest digest)
|
|
DSADigestSigner(DSAExt dsa,
Digest digest,
DSAEncoding encoding)
|
|
| Method Summary | |
byte[] |
generateSignature()
Generate a signature for the message we've been loaded with using the key we were initialised with. |
protected java.math.BigInteger |
getOrder()
|
void |
init(boolean forSigning,
CipherParameters parameters)
Initialise the signer for signing or verification. |
void |
reset()
reset the internal state |
void |
update(byte input)
update the internal digest with the byte b |
void |
update(byte[] input,
int inOff,
int length)
update the internal digest with the byte array in |
boolean |
verifySignature(byte[] signature)
return true if the internal state represents the signature described in the passed in array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DSADigestSigner(DSA dsa,
Digest digest)
public DSADigestSigner(DSAExt dsa,
Digest digest,
DSAEncoding encoding)
| Method Detail |
public void init(boolean forSigning,
CipherParameters parameters)
Signer
init in interface SignerforSigning - true if for signing, false otherwiseparameters - necessary parameters.public void update(byte input)
update in interface Signer
public void update(byte[] input,
int inOff,
int length)
update in interface Signerpublic byte[] generateSignature()
generateSignature in interface Signerpublic boolean verifySignature(byte[] signature)
Signer
verifySignature in interface Signerpublic void reset()
Signer
reset in interface Signerprotected java.math.BigInteger getOrder()
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||