@iov/crypto
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -90,3 +90,3 @@ "use strict"; | ||
const additionalData = undefined; | ||
return sodium.crypto_aead_xchacha20poly1305_ietf_encrypt(message, additionalData, null, // secret nonce: unused and should be null (https://download.libsodium.org/doc/secret-key_cryptography/xchacha20-poly1305_construction.html) | ||
return sodium.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) | ||
nonce, key); | ||
@@ -99,3 +99,3 @@ }); | ||
const additionalData = undefined; | ||
return sodium.crypto_aead_xchacha20poly1305_ietf_decrypt(null, // secret nonce: unused and should be null (https://download.libsodium.org/doc/secret-key_cryptography/ietf_chacha20-poly1305_construction.html) | ||
return sodium.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) | ||
ciphertext, additionalData, nonce, key); | ||
@@ -102,0 +102,0 @@ }); |
{ | ||
"name": "@iov/crypto", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "Cryptography resources for IOV projects", | ||
@@ -33,3 +33,3 @@ "author": "IOV SAS <admin@iov.one>", | ||
"dependencies": { | ||
"@iov/encoding": "^0.7.1", | ||
"@iov/encoding": "^0.8.0", | ||
"bip39": "^2.5.0", | ||
@@ -48,3 +48,3 @@ "bn.js": "^4.11.8", | ||
}, | ||
"gitHead": "8f28a3ba4db2d6dd38ef59aef1ff31940d9a75dc" | ||
"gitHead": "08220c00bbf793a17c657d0d3c5ad8ea978f674f" | ||
} |
@@ -111,3 +111,3 @@ // Keep all classes requiring libsodium-js in one file as having multiple | ||
additionalData, | ||
null, // secret nonce: unused and should be null (https://download.libsodium.org/doc/secret-key_cryptography/xchacha20-poly1305_construction.html) | ||
null, // secret nonce: unused and should be null (https://download.libsodium.org/doc/secret-key_cryptography/aead/chacha20-poly1305/xchacha20-poly1305_construction) | ||
nonce, | ||
@@ -128,3 +128,3 @@ key, | ||
return sodium.crypto_aead_xchacha20poly1305_ietf_decrypt( | ||
null, // secret nonce: unused and should be null (https://download.libsodium.org/doc/secret-key_cryptography/ietf_chacha20-poly1305_construction.html) | ||
null, // secret nonce: unused and should be null (https://download.libsodium.org/doc/secret-key_cryptography/aead/chacha20-poly1305/xchacha20-poly1305_construction) | ||
ciphertext, | ||
@@ -131,0 +131,0 @@ additionalData, |
import { HashFunction } from "./sha"; | ||
export declare class Ripemd160 implements HashFunction { | ||
readonly blockSize: number; | ||
readonly blockSize = 64; | ||
private readonly impl; | ||
@@ -5,0 +5,0 @@ constructor(firstData?: Uint8Array); |
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
734235
+ Added@iov/encoding@0.8.0(transitive)
- Removed@iov/encoding@0.7.1(transitive)
Updated@iov/encoding@^0.8.0