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
- Exception
void update(byte[] H, int off, int len) throws Exception
H
- off
- len
- Exception
boolean verify(byte[] sig) throws Exception
sig
- Exception
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.