| Modifier and Type | Class and Description |
|---|---|
static class |
SignatureEdDSA.Factory |
| Modifier | Constructor and Description |
|---|---|
protected |
SignatureEdDSA() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode(byte[] signature)
Encode the signature as blog
|
void |
init(java.security.PublicKey pubkey,
java.security.PrivateKey prvkey)
Initialize this signature with the given public key and private key.
|
byte[] |
sign()
Compute the signature.
|
void |
update(byte[] H)
Convenience method, same as calling
Signature.update(byte[], int, int) with offset as 0 and H.length. |
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.
|
public void init(java.security.PublicKey pubkey,
java.security.PrivateKey prvkey)
Signaturepublic void update(byte[] H)
SignatureSignature.update(byte[], int, int) with offset as 0 and H.length.public void update(byte[] H,
int off,
int len)
Signaturepublic byte[] sign()
Signaturepublic byte[] encode(byte[] signature)
Signature