public interface Signature
javax.crypto.Signature object.| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode(byte[] signature)
Encode the signature as blog
|
void |
init(PublicKey pubkey,
PrivateKey prvkey)
Initialize this signature with the given public key and private key.
|
byte[] |
sign()
Compute the signature.
|
void |
update(byte[] H)
|
void |
update(byte[] H,
int off,
int len)
Update the computed signature with the given data.
|
boolean |
verify(byte[] sig)
Verify against the given signature.
|
void init(PublicKey pubkey, PrivateKey prvkey)
pubkey - (null-ok) specify in case verification is neededprvkey - (null-ok) specify in case signing is neededvoid update(byte[] H)
H - the byte-array to update withvoid update(byte[] H,
int off,
int len)
H - byte-array to update withoff - offset within the arraylen - length until which to computebyte[] sign()
byte[] encode(byte[] signature)
signature - the signature to encodeboolean verify(byte[] sig)
sig - the signature to verify againsttrue on successful verification, false on failureCopyright © 2009–2014. All rights reserved.