public interface Signature
javax.crypto.Signature object.| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode(byte[] signature)
Encode the signature as blog
|
void |
initSign(java.security.PrivateKey prvkey)
Initialize this signature with the given private key for signing.
|
void |
initVerify(java.security.PublicKey pubkey)
Initialize this signature with the given public key for signature verification.
|
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 initVerify(java.security.PublicKey pubkey)
initVerify(PublicKey) or initSign(PrivateKey) will
overwrite prior initialization.pubkey - the public key to use for signature verificationvoid initSign(java.security.PrivateKey prvkey)
initVerify(PublicKey) or initSign(PrivateKey) will
overwrite prior initialization.prvkey - the private key to use for signingvoid 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 failure