public class Curve extends Object
| Constructor and Description |
|---|
Curve() |
| Modifier and Type | Method and Description |
|---|---|
int |
box(byte[] ciphertext,
byte[] plaintext,
int length,
byte[] nonce,
byte[] publicKey,
byte[] secretKey) |
int |
box(ByteBuffer ciphertext,
ByteBuffer plaintext,
int length,
ByteBuffer nonce,
byte[] publicKey,
byte[] secretKey) |
byte[][] |
keypair()
Generates a pair of keys for use with this class.
|
String[] |
keypairZ85()
Generates a pair of Z85-encoded keys for use with this class.
|
static String |
z85EncodePublic(byte[] publicKey) |
public static String z85EncodePublic(byte[] publicKey)
public String[] keypairZ85()
public byte[][] keypair()
public int box(ByteBuffer ciphertext, ByteBuffer plaintext, int length, ByteBuffer nonce, byte[] publicKey, byte[] secretKey)
public int box(byte[] ciphertext,
byte[] plaintext,
int length,
byte[] nonce,
byte[] publicKey,
byte[] secretKey)
Copyright © 2020. All rights reserved.