Commit dbc6c26f authored by David Burke's avatar David Burke

Added crypto_box_easy and it's open functions

parent 124285a7
......@@ -22,6 +22,8 @@ export declare class Common {
private static force_bytes(input);
private static force_java_bytes(input);
private static trimJavaBytes(input);
static crypto_box_easy(message: string | Uint8Array, nonce: Uint8Array, publicKey: any, privateKey: any): Uint8Array;
static crypto_box_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, privateKey: Uint8Array): Uint8Array;
static crypto_secretbox_easy(message: string | Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array;
static crypto_secretbox_open_easy(ciphertext: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array;
static crypto_box_seal(message: string | Uint8Array, publicKey: Uint8Array): Uint8Array;
......
{
"name": "nativescript-libsodium",
"version": "1.3.1",
"version": "1.3.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment