diff --git a/benchmark/package-lock.json b/benchmark/package-lock.json new file mode 100644 index 0000000..a28a1ce --- /dev/null +++ b/benchmark/package-lock.json @@ -0,0 +1,311 @@ +{ + "name": "benchmark", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "benchmark", + "version": "0.1.0", + "license": "MIT", + "dependencies": { + "@devtomio/sodium": "^0.3.0", + "@stablelib/chacha": "^1.0.1", + "@stablelib/chacha20poly1305": "^1.0.1", + "@stablelib/salsa20": "^1.0.2", + "@stablelib/xchacha20": "^1.0.1", + "@stablelib/xchacha20poly1305": "^1.0.1", + "@stablelib/xsalsa20": "^1.0.2", + "libsodium-wrappers": "^0.7.11", + "tweetnacl": "^1.0.3" + }, + "devDependencies": { + "@chainsafe/as-chacha20poly1305": "^0.1.0" + } + }, + "node_modules/@chainsafe/as-chacha20poly1305": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@chainsafe/as-chacha20poly1305/-/as-chacha20poly1305-0.1.0.tgz", + "integrity": "sha512-BpNcL8/lji/GM3+vZ/bgRWqJ1q5kwvTFmGPk7pxm/QQZDbaMI98waOHjEymTjq2JmdD/INdNBFOVSyJofXg7ew==", + "dev": true + }, + "node_modules/@devtomio/sodium": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium/-/sodium-0.3.0.tgz", + "integrity": "sha512-XL+alYPip4uRfeG8YizVfl0aPvIE61mnNCXGbKJWEQL4AL2q8zhLX7j9w24MYsZtHwOC7vWVcms68WeHDNm9Rw==", + "dependencies": { + "@node-rs/helper": "^1.3.3", + "tslib": "^2.3.1" + }, + "optionalDependencies": { + "@devtomio/sodium-android-arm64": "0.3.0", + "@devtomio/sodium-darwin-arm64": "0.3.0", + "@devtomio/sodium-darwin-x64": "0.3.0", + "@devtomio/sodium-freebsd-x64": "0.3.0", + "@devtomio/sodium-linux-arm-gnueabihf": "0.3.0", + "@devtomio/sodium-linux-arm64-gnu": "0.3.0", + "@devtomio/sodium-linux-arm64-musl": "0.3.0", + "@devtomio/sodium-linux-x64-gnu": "0.3.0", + "@devtomio/sodium-linux-x64-musl": "0.3.0", + "@devtomio/sodium-win32-x64-msvc": "0.3.0" + } + }, + "node_modules/@devtomio/sodium-android-arm64": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-android-arm64/-/sodium-android-arm64-0.3.0.tgz", + "integrity": "sha512-Hh7AFhkwCjmxgGAZE/Lh39+JUFakeRfFYW1eo8W2/RqtAwKSHzlQuLxbeDKQFzkBN+94rus9MB9EPkfDkmTeDw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@devtomio/sodium-darwin-arm64": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-darwin-arm64/-/sodium-darwin-arm64-0.3.0.tgz", + "integrity": "sha512-cmArnpkwJCrh97WppbltTlLJZCVdSKXzIw7mlaYSWtzwm2/vLg36+mFYcSeECt7d7wv+2KqxSrWI/3qev+i9Yg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@devtomio/sodium-darwin-x64": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-darwin-x64/-/sodium-darwin-x64-0.3.0.tgz", + "integrity": "sha512-1oWkd6ZgiIlJd5uKwckFTAcbgEfX0jLpCKIAn/heqvJS/k8R0wzlQaQBHDNfo3IzdOjZ3BWbysILWHG2SjlVYA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@devtomio/sodium-freebsd-x64": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-freebsd-x64/-/sodium-freebsd-x64-0.3.0.tgz", + "integrity": "sha512-QdHoik5HmQYG/ewgyEzqZmUlc8vLjVKv0Sxejd+Cog5SMpM6Bxp8Mx6eXF+qf4HDSI5pMuygcebszxGd8m3qVw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@devtomio/sodium-linux-arm-gnueabihf": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-linux-arm-gnueabihf/-/sodium-linux-arm-gnueabihf-0.3.0.tgz", + "integrity": "sha512-l3PmkpWh39ge0bQnEfNAkcG8xBr2qyoAjSM27xC7f3pefMe4b6YJUi5MhR5tgkQ7KgDivNTrCWySQgSZi0WXhQ==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@devtomio/sodium-linux-arm64-gnu": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-linux-arm64-gnu/-/sodium-linux-arm64-gnu-0.3.0.tgz", + "integrity": "sha512-zKvBwzqhRb4LVgXhfEj1Z+6t9yz+Qi3iXKQ/bOK146iQJ3XIEbRS3EKRO+w5al/ipYmV6vWpPxEmBk1X1Kfvfg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@devtomio/sodium-linux-arm64-musl": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-linux-arm64-musl/-/sodium-linux-arm64-musl-0.3.0.tgz", + "integrity": "sha512-6tJ3mvmtySrMDW5uXpTNpAg2Xeec0KqRFT2ZrDxK8NmoHJlX3KXdgqmPRIBT6kkiogz6PFRQVexdtcy1OVJcMA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@devtomio/sodium-linux-x64-gnu": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-linux-x64-gnu/-/sodium-linux-x64-gnu-0.3.0.tgz", + "integrity": "sha512-eJiHMhuFs+R3XDJ3zmJMUYWKJX7zFeohw1eGDr2TYZrDfE0rsRCtHMjgKtPl5HtbShGNMR9Ap9Fy98nwG89UCg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@devtomio/sodium-linux-x64-musl": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-linux-x64-musl/-/sodium-linux-x64-musl-0.3.0.tgz", + "integrity": "sha512-bSM9T+4L8jR/n2xHSudhpyU7WonRDk3fCamysy6skncGp0fLQJ2s257KoIutrr2alNGsmkcZy4/oe0c3A6haQg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@devtomio/sodium-win32-x64-msvc": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@devtomio/sodium-win32-x64-msvc/-/sodium-win32-x64-msvc-0.3.0.tgz", + "integrity": "sha512-X3y6sl6q8RSxezq8V03Rtc1b/QmSmBXw0JmxjCAmVo6KKrpYuQpAxkbH78TRPUxixWzXLIDU+3MyEUJQQjOLtA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@napi-rs/triples": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@napi-rs/triples/-/triples-1.1.0.tgz", + "integrity": "sha512-XQr74QaLeMiqhStEhLn1im9EOMnkypp7MZOwQhGzqp2Weu5eQJbpPxWxixxlYRKWPOmJjsk6qYfYH9kq43yc2w==" + }, + "node_modules/@node-rs/helper": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@node-rs/helper/-/helper-1.3.3.tgz", + "integrity": "sha512-p4OdfQObGN9YFy5WZaGwlPYICQSe7xZYyXB0sxREmvj1HzGKp5bPg2PlfgfMZEfnjIA882B9ZrnagYzZihIwjA==", + "dependencies": { + "@napi-rs/triples": "^1.1.0" + } + }, + "node_modules/@stablelib/aead": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/aead/-/aead-1.0.1.tgz", + "integrity": "sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg==" + }, + "node_modules/@stablelib/binary": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz", + "integrity": "sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==", + "dependencies": { + "@stablelib/int": "^1.0.1" + } + }, + "node_modules/@stablelib/chacha": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/chacha/-/chacha-1.0.1.tgz", + "integrity": "sha512-Pmlrswzr0pBzDofdFuVe1q7KdsHKhhU24e8gkEwnTGOmlC7PADzLVxGdn2PoNVBBabdg0l/IfLKg6sHAbTQugg==", + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/chacha20poly1305": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.1.tgz", + "integrity": "sha512-MmViqnqHd1ymwjOQfghRKw2R/jMIGT3wySN7cthjXCBdO+qErNPUBnRzqNpnvIwg7JBCg3LdeCZZO4de/yEhVA==", + "dependencies": { + "@stablelib/aead": "^1.0.1", + "@stablelib/binary": "^1.0.1", + "@stablelib/chacha": "^1.0.1", + "@stablelib/constant-time": "^1.0.1", + "@stablelib/poly1305": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/constant-time/-/constant-time-1.0.1.tgz", + "integrity": "sha512-tNOs3uD0vSJcK6z1fvef4Y+buN7DXhzHDPqRLSXUel1UfqMB1PWNsnnAezrKfEwTLpN0cGH2p9NNjs6IqeD0eg==" + }, + "node_modules/@stablelib/int": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz", + "integrity": "sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==" + }, + "node_modules/@stablelib/poly1305": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/poly1305/-/poly1305-1.0.1.tgz", + "integrity": "sha512-1HlG3oTSuQDOhSnLwJRKeTRSAdFNVB/1djy2ZbS35rBSJ/PFqx9cf9qatinWghC2UbfOYD8AcrtbUQl8WoxabA==", + "dependencies": { + "@stablelib/constant-time": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/salsa20": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@stablelib/salsa20/-/salsa20-1.0.2.tgz", + "integrity": "sha512-nfjKzw0KTKrrKBasEP+j7UP4I8Xudom8lVZIBCp0kQNARXq72IlSic0oabg2FC1NU68L4RdHrNJDd8bFwrphYA==", + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/constant-time": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/wipe": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz", + "integrity": "sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==" + }, + "node_modules/@stablelib/xchacha20": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/xchacha20/-/xchacha20-1.0.1.tgz", + "integrity": "sha512-1YkiZnFF4veUwBVhDnDYwo6EHeKzQK4FnLiO7ezCl/zu64uG0bCCAUROJaBkaLH+5BEsO3W7BTXTguMbSLlWSw==", + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/chacha": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/xchacha20poly1305": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/xchacha20poly1305/-/xchacha20poly1305-1.0.1.tgz", + "integrity": "sha512-B1Abj0sMJ8h3HNmGnJ7vHBrAvxuNka6cJJoZ1ILN7iuacXp7sUYcgOVEOTLWj+rtQMpspY9tXSCRLPmN1mQNWg==", + "dependencies": { + "@stablelib/aead": "^1.0.1", + "@stablelib/chacha20poly1305": "^1.0.1", + "@stablelib/constant-time": "^1.0.1", + "@stablelib/wipe": "^1.0.1", + "@stablelib/xchacha20": "^1.0.1" + } + }, + "node_modules/@stablelib/xsalsa20": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@stablelib/xsalsa20/-/xsalsa20-1.0.2.tgz", + "integrity": "sha512-7XdBGbcNgBShmuhDXv1G1WPVCkjZdkb1oPMzSidO7Fve0MHntH6TjFkj5bfLI+aRE+61weO076vYpP/jmaAYog==", + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/salsa20": "^1.0.2", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/libsodium": { + "version": "0.7.11", + "resolved": "https://registry.npmjs.org/libsodium/-/libsodium-0.7.11.tgz", + "integrity": "sha512-WPfJ7sS53I2s4iM58QxY3Inb83/6mjlYgcmZs7DJsvDlnmVUwNinBCi5vBT43P6bHRy01O4zsMU2CoVR6xJ40A==" + }, + "node_modules/libsodium-wrappers": { + "version": "0.7.11", + "resolved": "https://registry.npmjs.org/libsodium-wrappers/-/libsodium-wrappers-0.7.11.tgz", + "integrity": "sha512-SrcLtXj7BM19vUKtQuyQKiQCRJPgbpauzl3s0rSwD+60wtHqSUuqcoawlMDheCJga85nKOQwxNYQxf/CKAvs6Q==", + "dependencies": { + "libsodium": "^0.7.11" + } + }, + "node_modules/tslib": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==" + }, + "node_modules/tweetnacl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" + } + } +} diff --git a/benchmark/package.json b/benchmark/package.json index 96fe3b9..908ee7c 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -12,14 +12,15 @@ "author": "", "license": "MIT", "dependencies": { - "@devtomio/sodium": "^0.3.0", - "@stablelib/chacha": "^1.0.1", - "@stablelib/chacha20poly1305": "^1.0.1", - "@stablelib/salsa20": "^1.0.2", - "@stablelib/xchacha20": "^1.0.1", - "@stablelib/xchacha20poly1305": "^1.0.1", - "@stablelib/xsalsa20": "^1.0.2", - "libsodium-wrappers": "^0.7.11", - "tweetnacl": "^1.0.3" + "@devtomio/sodium": "0.3.0", + "@chainsafe/as-chacha20poly1305": "0.1.0", + "@stablelib/chacha": "1.0.1", + "@stablelib/chacha20poly1305": "1.0.1", + "@stablelib/salsa20": "1.0.2", + "@stablelib/xchacha20": "1.0.1", + "@stablelib/xchacha20poly1305": "1.0.1", + "@stablelib/xsalsa20": "1.0.2", + "libsodium-wrappers": "0.7.11", + "tweetnacl": "1.0.3" } }