Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stablelib/xsalsa20

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stablelib/xsalsa20 - npm Package Compare versions

Comparing version 0.7.2 to 1.0.0

2

lib/xsalsa20.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc