Commit e1bf817b authored by David Burke's avatar David Burke

Updated to work with latest libsodium-jni snapshot

Can't wait for stable libsodium-jni version so I can pin the version
parent b64176f7
......@@ -8,7 +8,9 @@ Only Android is supported at this time.
`tns plugin add libsodium-nativescript`
For Android - libsodium-jni requires the following changes to your AndroidManifest.xml
For Android - libsodium-jni requires either disallowing backend or making the following changes to your AndroidManifest.xml
*Don't use backup if you are storing secret keys as they would also get backed up*
- Add `tools:replace="android:allowBackup"` as an attribute to the application tag.
- Add `xmlns:tools="http://schemas.android.com/tools"` asn an attribute to the manifest tag.
......
This diff is collapsed.
......@@ -54,12 +54,6 @@ export declare class Common {
static readonly crypto_pwhash_OPSLIMIT_SENSITIVE: number;
static readonly crypto_pwhash_SALTBYTES: number;
static readonly crypto_pwhash_STRBYTES: number;
static readonly crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE: number;
static readonly crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE: number;
static readonly crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE: number;
static readonly crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE: number;
static readonly crypto_pwhash_scryptsalsa208sha256_SALTBYTES: number;
static readonly crypto_pwhash_scryptsalsa208sha256_STRBYTES: number;
static readonly crypto_scalarmult_BYTES: number;
static readonly crypto_scalarmult_SCALARBYTES: number;
static readonly crypto_secretbox_KEYBYTES: number;
......
......@@ -209,12 +209,6 @@ export class Common {
public static get crypto_pwhash_OPSLIMIT_SENSITIVE() { return Sodium.crypto_pwhash_opslimit_sensitive(); }
public static get crypto_pwhash_SALTBYTES() { return Sodium.crypto_pwhash_saltbytes(); }
public static get crypto_pwhash_STRBYTES() { return Sodium.crypto_pwhash_strbytes(); }
public static get crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE() { return Sodium.crypto_pwhash_scryptsalsa208sha256_memlimit_interactive(); }
public static get crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE() { return Sodium.crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive(); }
public static get crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE() { return Sodium.crypto_pwhash_scryptsalsa208sha256_opslimit_interactive(); }
public static get crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE() { return Sodium.crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive(); }
public static get crypto_pwhash_scryptsalsa208sha256_SALTBYTES() { return Sodium.crypto_pwhash_scryptsalsa208sha256_saltbytes(); }
public static get crypto_pwhash_scryptsalsa208sha256_STRBYTES() { return Sodium.crypto_pwhash_scryptsalsa208sha256_strbytes(); }
public static get crypto_scalarmult_BYTES() { return Sodium.crypto_scalarmult_bytes(); }
public static get crypto_scalarmult_SCALARBYTES() { return Sodium.crypto_scalarmult_scalarbytes(); }
public static get crypto_secretbox_KEYBYTES() { return Sodium.crypto_secretbox_keybytes(); }
......
{
"name": "nativescript-libsodium",
"version": "1.0.1",
"version": "1.0.2",
"description": "Use libsodium in Nativescript with libsodium.js like wrappers.",
"main": "libsodium",
"typings": "index.d.ts",
......
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