sodium-native
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "sodium-native", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Low level bindings for libsodium", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -287,3 +287,3 @@ # sodium-native | ||
* `message` should be a buffer with length `cipher.length`. | ||
* `message` should be a buffer with length `cipher.length - crypto_box_MACBYTES`. | ||
* `cipher` should be a buffer with length at least `crypto_box_MACBYTES`. | ||
@@ -373,3 +373,3 @@ * `nonce` should be a buffer with length `crypto_box_NONCEBYTES`. | ||
* `message` should be a buffer with length `cipher.length`. | ||
* `message` should be a buffer with length `cipher.length - crypto_secretbox_MACBYTES`. | ||
* `cipher` should be a buffer with length at least `crypto_secretbox_MACBYTES`. | ||
@@ -376,0 +376,0 @@ * `nonce` should be a buffer with length `crypto_secretbox_NONCEBYTES`. |
@@ -6,2 +6,26 @@ var tape = require('tape') | ||
tape('constants', function (t) { | ||
t.ok(sodium.crypto_pwhash_ALG_ARGON2I13 != null, 'crypto_pwhash_ALG_ARGON2I13 is defined') | ||
t.ok(sodium.crypto_pwhash_ALG_ARGON2ID13 != null, 'crypto_pwhash_ALG_ARGON2ID13 is defined') | ||
t.ok(sodium.crypto_pwhash_ALG_DEFAULT === sodium.crypto_pwhash_ALG_ARGON2ID13, 'crypto_pwhash_ALG_DEFAULT is crypto_pwhash_ALG_ARGON2ID13') | ||
t.ok(sodium.crypto_pwhash_BYTES_MIN != null, 'crypto_pwhash_BYTES_MIN is defined') | ||
t.ok(sodium.crypto_pwhash_BYTES_MAX != null, 'crypto_pwhash_BYTES_MAX is defined') | ||
t.ok(sodium.crypto_pwhash_PASSWD_MIN != null, 'crypto_pwhash_PASSWD_MIN is defined') | ||
t.ok(sodium.crypto_pwhash_PASSWD_MAX != null, 'crypto_pwhash_PASSWD_MAX is defined') | ||
t.ok(sodium.crypto_pwhash_SALTBYTES != null, 'crypto_pwhash_SALTBYTES is defined') | ||
t.ok(sodium.crypto_pwhash_STRBYTES != null, 'crypto_pwhash_STRBYTES is defined') | ||
t.ok(sodium.crypto_pwhash_OPSLIMIT_MIN != null, 'crypto_pwhash_OPSLIMIT_MIN is defined') | ||
t.ok(sodium.crypto_pwhash_OPSLIMIT_MAX != null, 'crypto_pwhash_OPSLIMIT_MAX is defined') | ||
t.ok(sodium.crypto_pwhash_MEMLIMIT_MIN != null, 'crypto_pwhash_MEMLIMIT_MIN is defined') | ||
t.ok(sodium.crypto_pwhash_MEMLIMIT_MAX != null, 'crypto_pwhash_MEMLIMIT_MAX is defined') | ||
t.ok(sodium.crypto_pwhash_OPSLIMIT_INTERACTIVE != null, 'crypto_pwhash_OPSLIMIT_INTERACTIVE is defined') | ||
t.ok(sodium.crypto_pwhash_MEMLIMIT_INTERACTIVE != null, 'crypto_pwhash_MEMLIMIT_INTERACTIVE is defined') | ||
t.ok(sodium.crypto_pwhash_OPSLIMIT_MODERATE != null, 'crypto_pwhash_OPSLIMIT_MODERATE is defined') | ||
t.ok(sodium.crypto_pwhash_MEMLIMIT_MODERATE != null, 'crypto_pwhash_MEMLIMIT_MODERATE is defined') | ||
t.ok(sodium.crypto_pwhash_OPSLIMIT_SENSITIVE != null, 'crypto_pwhash_OPSLIMIT_SENSITIVE is defined') | ||
t.ok(sodium.crypto_pwhash_MEMLIMIT_SENSITIVE != null, 'crypto_pwhash_MEMLIMIT_SENSITIVE is defined') | ||
t.end() | ||
}) | ||
tape('crypto_pwhash', function (t) { | ||
@@ -8,0 +32,0 @@ var output = alloc(32) // can be any size |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20886374
650
1193