Commit 575dc38a authored by David Burke's avatar David Burke

Updated libsodium jni to 1.0.8

parent 3830bc47
......@@ -9,14 +9,18 @@ describe("libsodium nativescript wrapper", function() {
});
it("can run crypto_pwhash", function() {
const OPSLIMIT = 4;
const MEMLIMIT = 33554432;
const ALG = 1;
let salt = new Uint8Array([ 88, 240, 185, 66, 195, 101, 160, 138, 137, 78, 1, 2, 3, 4, 5, 6]);
let hash = Libsodium.crypto_pwhash(
Libsodium.crypto_box_SEEDBYTES,
"hunter2",
salt,
Libsodium.crypto_pwhash_OPSLIMIT_INTERACTIVE,
Libsodium.crypto_pwhash_MEMLIMIT_INTERACTIVE,
Libsodium.crypto_pwhash_ALG_DEFAULT,
OPSLIMIT,
MEMLIMIT,
ALG,
);
expect(hash[0]).toEqual(49);
});
......
{
"name": "nativescript-libsodium",
"version": "1.1.0",
"version": "1.2.0",
"description": "Use libsodium in Nativescript with libsodium.js like wrappers.",
"main": "libsodium",
"typings": "index.d.ts",
......
......@@ -17,5 +17,5 @@ repositories {
}
dependencies {
compile 'com.github.joshjdevl.libsodiumjni:libsodium-jni-aar:1.0.7-SNAPSHOT'
}
\ No newline at end of file
compile 'com.github.joshjdevl.libsodiumjni:libsodium-jni-aar:1.0.8'
}
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