public interface Signature
| Modifier and Type | Method and Description |
|---|---|
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,
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) throws Exception
pubkey - prvkey - Exceptionvoid update(byte[] H,
int off,
int len)
throws Exception
H - off - len - Exceptionboolean verify(byte[] sig)
throws Exception
sig - ExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.