Skip to content

Commit

Permalink
Add submodle github.com/XKCP/XKCP for test vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored and cakoose committed Dec 19, 2018
1 parent f4b69d5 commit 66dda52
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "util/XKCP"]
path = util/XKCP
url = https://github.com/XKCP/XKCP.git
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"coverage": "nyc tape test/index.js",
"coverage-lcov": "npm run coverage && nyc report -r lcov",
"install": "npm run rebuild || echo \"Keccak bindings compilation fail. Pure JS implementation will be used.\"",
"libkeccak": "./util/libkeccak.sh",
"lint": "standard",
"rebuild": "node-gyp rebuild",
"test": "npm run lint && npm run unit",
Expand Down
2 changes: 1 addition & 1 deletion test/vectors-sha3.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs')

module.exports = (name, createHash) => {
for (const hash of ['sha3-224', 'sha3-256', 'sha3-384', 'sha3-512']) {
const filename = require.resolve(`../util/KeccakCodePackage/TestVectors/ShortMsgKAT_${hash.toUpperCase()}.txt`)
const filename = require.resolve(`../util/XKCP/tests/TestVectors/ShortMsgKAT_${hash.toUpperCase()}.txt`)
const content = fs.readFileSync(filename, 'utf8')
const lines = content.split('\n')

Expand Down
2 changes: 1 addition & 1 deletion test/vectors-shake.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs')

module.exports = (name, createHash) => {
for (const hash of ['shake128', 'shake256']) {
const filename = require.resolve(`../util/KeccakCodePackage/TestVectors/ShortMsgKAT_${hash.toUpperCase()}.txt`)
const filename = require.resolve(`../util/XKCP/tests/TestVectors/ShortMsgKAT_${hash.toUpperCase()}.txt`)
const content = fs.readFileSync(filename, 'utf8')
const lines = content.split('\n')

Expand Down
1 change: 1 addition & 0 deletions util/XKCP
Submodule XKCP added at 58b20e

0 comments on commit 66dda52

Please sign in to comment.