@stablelib/nacl
Advanced tools
Comparing version 0.10.5 to 1.0.0
@@ -0,2 +1,5 @@ | ||
/** | ||
* Package nacl implements NaCl (Networking and Cryptography library) cryptography. | ||
*/ | ||
export * from "./box"; | ||
export * from "./secretbox"; |
@@ -8,4 +8,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Package nacl implements NaCl (Networking and Cryptography library) cryptography. | ||
*/ | ||
__export(require("./box")); | ||
__export(require("./secretbox")); | ||
//# sourceMappingURL=nacl.js.map |
import { RandomSource } from "@stablelib/random"; | ||
export declare function secretBox(key: Uint8Array, nonce: Uint8Array, data: Uint8Array): Uint8Array; | ||
export declare function openSecretBox(key: Uint8Array, nonce: Uint8Array, box: Uint8Array): Uint8Array | null; | ||
/** Generates 32-byte random secret key. */ | ||
/** Generates a 32-byte random secret key. */ | ||
export declare function generateKey(prng?: RandomSource): Uint8Array; |
@@ -95,3 +95,3 @@ "use strict"; | ||
exports.openSecretBox = openSecretBox; | ||
/** Generates 32-byte random secret key. */ | ||
/** Generates a 32-byte random secret key. */ | ||
function generateKey(prng) { | ||
@@ -98,0 +98,0 @@ return random_1.randomBytes(32, prng); |
// Copyright (C) 2016 Dmitry Chestnykh | ||
// MIT License. See LICENSE file for details. | ||
/** | ||
* Package nacl implements NaCl (Networking and Cryptography library) cryptography. | ||
*/ | ||
export * from "./box"; | ||
export * from "./secretbox"; |
{ | ||
"name": "@stablelib/nacl", | ||
"version": "0.10.5", | ||
"version": "1.0.0", | ||
"description": "Implementation of secretbox and box from NaCl (Networking and Cryptography Library)", | ||
@@ -18,13 +18,13 @@ "main": "./lib/nacl.js", | ||
"dependencies": { | ||
"@stablelib/poly1305": "^0.10.2", | ||
"@stablelib/random": "^0.7.4", | ||
"@stablelib/wipe": "^0.5.0", | ||
"@stablelib/x25519": "^0.7.5", | ||
"@stablelib/xsalsa20": "^0.7.2" | ||
"@stablelib/poly1305": "^1.0.0", | ||
"@stablelib/random": "^1.0.0", | ||
"@stablelib/wipe": "^1.0.0", | ||
"@stablelib/x25519": "^1.0.0", | ||
"@stablelib/xsalsa20": "^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": "bfc2e6b7c9c3f31c7bb3610b8a0c09d3ef3613ca" | ||
"gitHead": "c3b9e138650642a738a9225956c75dbe44c76ae6" | ||
} |
@@ -61,3 +61,2 @@ // Copyright (C) 2016 Dmitry Chestnykh | ||
export function openSecretBox(key: Uint8Array, nonce: Uint8Array, box: Uint8Array): Uint8Array | null { | ||
@@ -122,5 +121,5 @@ if (nonce.length !== 24) { | ||
/** Generates 32-byte random secret key. */ | ||
/** Generates a 32-byte random secret key. */ | ||
export function generateKey(prng?: RandomSource): Uint8Array { | ||
return randomBytes(32, prng); | ||
} |
Sorry, the diff of this file is not supported yet
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
25169
409
1
+ Added@stablelib/binary@1.0.1(transitive)
+ Added@stablelib/bytes@1.0.1(transitive)
+ Added@stablelib/constant-time@1.0.1(transitive)
+ Added@stablelib/int@1.0.1(transitive)
+ Added@stablelib/keyagreement@1.0.1(transitive)
+ Added@stablelib/poly1305@1.0.1(transitive)
+ Added@stablelib/random@1.0.2(transitive)
+ Added@stablelib/salsa20@1.0.2(transitive)
+ Added@stablelib/wipe@1.0.1(transitive)
+ Added@stablelib/x25519@1.0.3(transitive)
+ Added@stablelib/xsalsa20@1.0.2(transitive)
- Removed@stablelib/binary@0.7.2(transitive)
- Removed@stablelib/bytes@0.5.0(transitive)
- Removed@stablelib/constant-time@0.5.0(transitive)
- Removed@stablelib/int@0.5.0(transitive)
- Removed@stablelib/keyagreement@0.5.1(transitive)
- Removed@stablelib/poly1305@0.10.2(transitive)
- Removed@stablelib/random@0.7.4(transitive)
- Removed@stablelib/salsa20@0.7.2(transitive)
- Removed@stablelib/wipe@0.5.0(transitive)
- Removed@stablelib/x25519@0.7.5(transitive)
- Removed@stablelib/xsalsa20@0.7.2(transitive)
Updated@stablelib/poly1305@^1.0.0
Updated@stablelib/random@^1.0.0
Updated@stablelib/wipe@^1.0.0
Updated@stablelib/x25519@^1.0.0
Updated@stablelib/xsalsa20@^1.0.0