org.bouncycastle.crypto.SignerWithRecovery |
Known Indirect Subclasses
ISO9796d2PSSSigner |
ISO9796-2 - mechanism using a hash function with recovery (scheme 2 and 3). |
ISO9796d2Signer |
ISO9796-2 - mechanism using a hash function with recovery (scheme 1)
|
|
Class Overview
Signer with message recovery.
Summary
Public Methods |
abstract
byte[]
|
getRecoveredMessage()
Returns a reference to what message was recovered (if any).
|
abstract
boolean
|
hasFullMessage()
Returns true if the signer has recovered the full message as
part of signature verification.
|
abstract
void
|
updateWithRecoveredMessage(byte[] signature)
Perform an update with the recovered message before adding any other data.
|
[Expand]
Inherited Methods |
From interface
org.bouncycastle.crypto.Signer
abstract
byte[]
|
generateSignature()
generate a signature for the message we've been loaded with using
the key we were initialised with.
|
abstract
void
|
init(boolean forSigning, CipherParameters param)
Initialise the signer for signing or verification.
|
abstract
void
|
reset()
reset the internal state
|
abstract
void
|
update(byte[] in, int off, int len)
update the internal digest with the byte array in
|
abstract
void
|
update(byte b)
update the internal digest with the byte b
|
abstract
boolean
|
verifySignature(byte[] signature)
return true if the internal state represents the signature described
in the passed in array.
|
|
Public Methods
public
abstract
byte[]
getRecoveredMessage
()
Returns a reference to what message was recovered (if any).
Returns
- full/partial message, null if nothing.
public
abstract
boolean
hasFullMessage
()
Returns true if the signer has recovered the full message as
part of signature verification.
Returns
- true if full message recovered.
public
abstract
void
updateWithRecoveredMessage
(byte[] signature)
Perform an update with the recovered message before adding any other data. This must
be the first update method called, and calling it will result in the signer assuming
that further calls to update will include message content past what is recoverable.
Parameters
signature
| the signature that we are in the process of verifying. |