From 747efda296c6073dfb7649fcd37b894c6c777d62 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sun, 4 Aug 2024 14:06:34 +0000 Subject: [PATCH] Small adjustments --- benchmark/package.json | 14 +++++++------- package.json | 4 ++-- src/_micro.ts | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/benchmark/package.json b/benchmark/package.json index 7d8a03e..cb0b948 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -14,19 +14,19 @@ "dependencies": { "@chainsafe/as-chacha20poly1305": "0.1.0", "@devtomio/sodium": "0.3.0", - "@noble/ciphers": "file:noble-ciphers-0.6.0.tgz", - "@stablelib/aes": "^1.0.1", + "@noble/ciphers": "file:noble-ciphers.tgz", + "@stablelib/aes": "1.0.1", "@stablelib/chacha": "1.0.1", "@stablelib/chacha20poly1305": "1.0.1", - "@stablelib/ctr": "^1.0.2", - "@stablelib/gcm": "^1.0.2", - "@stablelib/poly1305": "^1.0.1", + "@stablelib/ctr": "1.0.2", + "@stablelib/gcm": "1.0.2", + "@stablelib/poly1305": "1.0.1", "@stablelib/salsa20": "1.0.2", - "@stablelib/siv": "^1.0.2", + "@stablelib/siv": "1.0.2", "@stablelib/xchacha20": "1.0.1", "@stablelib/xchacha20poly1305": "1.0.1", "@stablelib/xsalsa20": "1.0.2", - "aes-js": "^3.1.2", + "aes-js": "3.1.2", "libsodium-wrappers": "0.7.11", "tweetnacl": "1.0.3" } diff --git a/package.json b/package.json index c3b169b..03f104e 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "scripts": { "bench": "node benchmark/aead.js noble && node benchmark/ciphers.js noble", "bench:all": "node benchmark/{aead,ciphers,poly}.js", - "bench:install": "cd benchmark && npm install && cd ../../", + "bench:install": "npm pack && mv *.tgz benchmark/noble-ciphers.tgz && cd benchmark && npm install && cd ..", "build": "npm run build:clean; tsc && tsc -p tsconfig.esm.json", "build:release": "cd build && npm i && npm run build", "build:clean": "rm *.{js,d.ts,js.map,d.ts.map} esm/*.{js,d.ts,js.map,d.ts.map} 2> /dev/null", @@ -29,7 +29,7 @@ }, "license": "MIT", "devDependencies": { - "@paulmillr/jsbt": "0.2.0", + "@paulmillr/jsbt": "0.2.1", "@scure/base": "1.1.3", "fast-check": "3.0.0", "micro-bmark": "0.3.1", diff --git a/src/_micro.ts b/src/_micro.ts index 986265a..eebedf9 100644 --- a/src/_micro.ts +++ b/src/_micro.ts @@ -16,7 +16,7 @@ import { } from './utils.js'; /* -noble-ciphers-micro: more auditable, but slower version of salsa20, chacha & poly1305. +noble-ciphers-micro: more auditable, but 4x slower version of salsa20, chacha & poly1305. Implements the same algorithms that are present in other files, but without unrolled loops (https://en.wikipedia.org/wiki/Loop_unrolling). */