public class RSAISO9796d2Signature extends BaseSignature
md, privateKey, publicKey, schemeName
SIGNER_KEY, SOURCE_OF_RANDOMNESS, VERIFIER_KEY
Constructor and Description |
---|
RSAISO9796d2Signature() |
RSAISO9796d2Signature(java.lang.String mdName,
boolean implicit) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a clone copy of this instance.
|
protected java.lang.Object |
generateSignature() |
byte[] |
getRecoveredMessage() |
protected void |
setupForSigning(java.security.PrivateKey key) |
protected void |
setupForVerification(java.security.PublicKey key) |
void |
update(byte b)
Digests one byte of a message for signing or verification purposes.
|
void |
update(byte[] b,
int off,
int len)
Digests a sequence of bytes from a message for signing or verification
purposes.
|
protected boolean |
verifySignature(java.lang.Object sig) |
clearData, clearData, init, name, nextRandomBytes, setupSign, setupVerify, sign, verify
public RSAISO9796d2Signature()
public RSAISO9796d2Signature(java.lang.String mdName, boolean implicit)
public java.lang.Object clone()
ISignature
Returns a clone copy of this instance.
clone
in interface ISignature
clone
in class BaseSignature
protected void setupForVerification(java.security.PublicKey key) throws java.lang.IllegalArgumentException
setupForVerification
in class BaseSignature
java.lang.IllegalArgumentException
protected void setupForSigning(java.security.PrivateKey key) throws java.lang.IllegalArgumentException
setupForSigning
in class BaseSignature
java.lang.IllegalArgumentException
protected java.lang.Object generateSignature() throws java.lang.IllegalStateException
generateSignature
in class BaseSignature
java.lang.IllegalStateException
protected boolean verifySignature(java.lang.Object sig) throws java.lang.IllegalStateException
verifySignature
in class BaseSignature
java.lang.IllegalStateException
public void update(byte[] b, int off, int len)
ISignature
Digests a sequence of bytes from a message for signing or verification purposes.
update
in interface ISignature
update
in class BaseSignature
b
- the byte sequence to consider.off
- the byte poisition in buffer
of the first byte
to consider.len
- the number of bytes in buffer
starting from the
byte at index offset
to digest.public void update(byte b)
ISignature
Digests one byte of a message for signing or verification purposes.
update
in interface ISignature
update
in class BaseSignature
b
- the message byte to digest.public byte[] getRecoveredMessage()
Copyright © 2025. All rights reserved.