@stablelib/xsalsa20
Advanced tools
Comparing version 0.7.2 to 1.0.0
@@ -22,4 +22,4 @@ /** | ||
* and in NaCl to hash X25519 shared keys. It takes 32-byte key and | ||
* 16-bytes src and writes 32-byte result into dst and returns it. | ||
* 16-byte src and writes 32-byte result into dst and returns it. | ||
*/ | ||
export declare function hsalsa(key: Uint8Array, src: Uint8Array, dst: Uint8Array): Uint8Array; |
@@ -5,2 +5,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Package xsalsa20 implements XSalsa20 stream cipher. | ||
*/ | ||
var binary_1 = require("@stablelib/binary"); | ||
@@ -63,3 +66,3 @@ var salsa20_1 = require("@stablelib/salsa20"); | ||
* and in NaCl to hash X25519 shared keys. It takes 32-byte key and | ||
* 16-bytes src and writes 32-byte result into dst and returns it. | ||
* 16-byte src and writes 32-byte result into dst and returns it. | ||
*/ | ||
@@ -66,0 +69,0 @@ function hsalsa(key, src, dst) { |
{ | ||
"name": "@stablelib/xsalsa20", | ||
"version": "0.7.2", | ||
"version": "1.0.0", | ||
"description": "XSalsa20 (eXtended-nonce Salsa20) stream cipher", | ||
@@ -18,10 +18,11 @@ "main": "./lib/xsalsa20.js", | ||
"dependencies": { | ||
"@stablelib/binary": "^0.7.2", | ||
"@stablelib/salsa20": "^0.7.2", | ||
"@stablelib/wipe": "^0.5.0" | ||
"@stablelib/binary": "^1.0.0", | ||
"@stablelib/salsa20": "^1.0.0", | ||
"@stablelib/wipe": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@stablelib/benchmark": "^0.5.0", | ||
"@stablelib/hex": "^0.5.0" | ||
} | ||
"@stablelib/benchmark": "^1.0.0", | ||
"@stablelib/hex": "^1.0.0" | ||
}, | ||
"gitHead": "c3b9e138650642a738a9225956c75dbe44c76ae6" | ||
} |
// Copyright (C) 2016 Dmitry Chestnykh | ||
// MIT License. See LICENSE file for details. | ||
/** | ||
* Package xsalsa20 implements XSalsa20 stream cipher. | ||
*/ | ||
import { writeUint32LE } from "@stablelib/binary"; | ||
@@ -69,3 +73,3 @@ import { streamXOR as salsaStreamXOR } from "@stablelib/salsa20"; | ||
* and in NaCl to hash X25519 shared keys. It takes 32-byte key and | ||
* 16-bytes src and writes 32-byte result into dst and returns it. | ||
* 16-byte src and writes 32-byte result into dst and returns it. | ||
*/ | ||
@@ -72,0 +76,0 @@ export function hsalsa(key: Uint8Array, src: Uint8Array, dst: Uint8Array): 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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
29741
446
1
+ Added@stablelib/binary@1.0.1(transitive)
+ Added@stablelib/constant-time@1.0.1(transitive)
+ Added@stablelib/int@1.0.1(transitive)
+ Added@stablelib/salsa20@1.0.2(transitive)
+ Added@stablelib/wipe@1.0.1(transitive)
- Removed@stablelib/binary@0.7.2(transitive)
- Removed@stablelib/constant-time@0.5.0(transitive)
- Removed@stablelib/int@0.5.0(transitive)
- Removed@stablelib/salsa20@0.7.2(transitive)
- Removed@stablelib/wipe@0.5.0(transitive)
Updated@stablelib/binary@^1.0.0
Updated@stablelib/salsa20@^1.0.0
Updated@stablelib/wipe@^1.0.0