@iov/crypto
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -80,3 +80,3 @@ "use strict"; | ||
yield libsodium_wrappers_1.default.ready; | ||
const additionalData = undefined; | ||
const additionalData = null; | ||
return libsodium_wrappers_1.default.crypto_aead_xchacha20poly1305_ietf_encrypt(message, additionalData, null, // secret nonce: unused and should be null (https://download.libsodium.org/doc/secret-key_cryptography/aead/chacha20-poly1305/xchacha20-poly1305_construction) | ||
@@ -89,3 +89,3 @@ nonce, key); | ||
yield libsodium_wrappers_1.default.ready; | ||
const additionalData = undefined; | ||
const additionalData = null; | ||
return libsodium_wrappers_1.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null, // secret nonce: unused and should be null (https://download.libsodium.org/doc/secret-key_cryptography/aead/chacha20-poly1305/xchacha20-poly1305_construction) | ||
@@ -92,0 +92,0 @@ ciphertext, additionalData, nonce, key); |
{ | ||
"name": "@iov/crypto", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Cryptography resources for IOV projects", | ||
@@ -41,3 +41,3 @@ "author": "IOV SAS <admin@iov.one>", | ||
"dependencies": { | ||
"@iov/encoding": "^1.1.0", | ||
"@iov/encoding": "^1.2.0", | ||
"bip39": "^3.0.2", | ||
@@ -47,3 +47,3 @@ "bn.js": "^4.11.8", | ||
"js-sha3": "^0.8.0", | ||
"libsodium-wrappers": "^0.7.5", | ||
"libsodium-wrappers": "^0.7.6", | ||
"pbkdf2": "^3.0.16", | ||
@@ -55,5 +55,5 @@ "sha.js": "^2.4.11", | ||
"devDependencies": { | ||
"@types/libsodium-wrappers": "^0.7.5" | ||
"@types/libsodium-wrappers": "^0.7.7" | ||
}, | ||
"gitHead": "6afbce38716a669568b431a4f38fd1486c43c10c" | ||
"gitHead": "3d3c018043d6d438ed9222bef413ecc52fbda1a7" | ||
} |
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
72385
Updated@iov/encoding@^1.2.0
Updatedlibsodium-wrappers@^0.7.6