|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.crypto.signers.RSADigestSigner
Constructor Summary | |
RSADigestSigner(Digest digest)
|
|
RSADigestSigner(Digest digest,
ASN1ObjectIdentifier digestOid)
|
Method Summary | |
byte[] |
generateSignature()
Generate a signature for the message we've been loaded with using the key we were initialised with. |
java.lang.String |
getAlgorithmName()
Deprecated. |
void |
init(boolean forSigning,
CipherParameters parameters)
Initialize 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 RSADigestSigner(Digest digest)
public RSADigestSigner(Digest digest, ASN1ObjectIdentifier digestOid)
Method Detail |
public java.lang.String getAlgorithmName()
public void init(boolean forSigning, CipherParameters parameters)
init
in interface Signer
forSigning
- 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 Signer
public byte[] generateSignature() throws CryptoException, DataLengthException
generateSignature
in interface Signer
public boolean verifySignature(byte[] signature)
verifySignature
in interface Signer
public void reset()
Signer
reset
in interface Signer
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |