@theqrl/dilithium5 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1680,10 +1680,6 @@ function cryptoSignOpen(sm, pk) {
|
|
|
1680
1680
|
return msg;
|
|
1681
1681
|
}
|
|
1682
1682
|
|
|
1683
|
-
Object.defineProperty(exports, "SHAKE", {
|
|
1684
|
-
enumerable: true,
|
|
1685
|
-
get: function () { return sha3.SHAKE; }
|
|
1686
|
-
});
|
|
1687
1683
|
exports.BETA = BETA;
|
|
1688
1684
|
exports.CRHBytes = CRHBytes;
|
|
1689
1685
|
exports.CryptoBytes = CryptoBytes;
|
|
@@ -1817,9 +1813,3 @@ exports.unpackSig = unpackSig;
|
|
|
1817
1813
|
exports.unpackSk = unpackSk;
|
|
1818
1814
|
exports.useHint = useHint;
|
|
1819
1815
|
exports.zetas = zetas;
|
|
1820
|
-
Object.keys(pkg).forEach(function (k) {
|
|
1821
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
1822
|
-
enumerable: true,
|
|
1823
|
-
get: function () { return pkg[k]; }
|
|
1824
|
-
});
|
|
1825
|
-
});
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export * from 'randombytes';
|
|
1
|
+
import pkg from 'randombytes';
|
|
3
2
|
import { SHAKE } from 'sha3';
|
|
4
|
-
export { SHAKE } from 'sha3';
|
|
5
3
|
|
|
6
4
|
const Shake128Rate = 168;
|
|
7
5
|
const Shake256Rate = 136;
|
|
@@ -1404,7 +1402,7 @@ function unpackSig(cP, z, hP, sig) {
|
|
|
1404
1402
|
return 0;
|
|
1405
1403
|
}
|
|
1406
1404
|
|
|
1407
|
-
const randomBytes =
|
|
1405
|
+
const randomBytes = pkg;
|
|
1408
1406
|
|
|
1409
1407
|
function cryptoSignKeypair(passedSeed, pk, sk) {
|
|
1410
1408
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theqrl/dilithium5",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Dilithium-5 cryptography",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dilithium",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"test": "../../node_modules/mocha/bin/mocha.js",
|
|
30
|
-
"build": "rollup src/index.js --file ./dist/dilithium5.
|
|
30
|
+
"build": "rollup src/index.js --file ./dist/cjs/dilithium5.js --format cjs && rollup src/index.js --file ./dist/mjs/dilithium5.js --format esm && ./fixup",
|
|
31
31
|
"lint-check": "eslint 'src/**/*.js' 'test/**/*.js'",
|
|
32
32
|
"lint": "eslint --fix 'src/**/*.js' 'test/**/*.js'",
|
|
33
33
|
"report-coverage": "c8 --reporter=text-lcov npm run test > coverage.lcov"
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"exports": {
|
|
39
39
|
".": {
|
|
40
|
-
"import": "./dist/dilithium5.
|
|
41
|
-
"require": "./dist/dilithium5.
|
|
40
|
+
"import": "./dist/mjs/dilithium5.js",
|
|
41
|
+
"require": "./dist/cjs/dilithium5.js"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"type": "module",
|