-
Notifications
You must be signed in to change notification settings - Fork 61
Test Vector Generation works again #35
Changes from 4 commits
6026f6e
e9fd138
523dd41
8494527
f330ceb
7be707a
e5cb4f8
89c158f
9b7d422
129c565
f20e69a
215acf1
2951bf0
1a2030e
5c3950b
a87cc86
0d4a994
d3c9672
9936736
f6ac204
e1c7eaf
409bd3d
ba5a9e9
bf65f7a
3a18600
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,8 @@ it does use npm to manage its dependencies | |
| ## Build | ||
|
|
||
| ```sh | ||
| $ npm install -g iced-coffee-script | ||
| $ sudo ln -s /usr/bin/nodejs /usr/bin/node | ||
| $ sudo npm install -g iced-coffee-script | ||
| $ npm install -d | ||
| $ icake build | ||
| ``` | ||
|
|
@@ -27,6 +28,8 @@ To generate our reference test vectors, we use the reference Scrypt implementati | |
| Python PBKDF2, and a Python library to turn a seed into a keypair. To see how this works, try: | ||
|
|
||
| ```sh | ||
| $ pip install virtualenv | ||
| $ sudo /usr/bin/easy_install virtualenv | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this line needed?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is needed only at the first run. |
||
| $ cd test/gen && make build && make spec | ||
| ``` | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
|
|
||
| SHELL := /bin/bash | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this needed? I use
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without this the I googled for "/bin/sh: 1: source: not found" and found this solution: I don'n know, I have a Ubuntu 16.04 LTS. What environment are you using for |
||
| SCRYPT_DIR=../../node_modules/triplesec/contrib/scrypt-1.1.6 | ||
| SCRYPT=${SCRYPT_DIR}/scrypt | ||
| PBKDF2=./pbkdf2.py | ||
| BU=py-venv/bin/bu | ||
| KU=py-venv/bin/ku | ||
|
|
||
| build: build-scrypt build-python | ||
|
|
||
|
|
@@ -17,6 +18,6 @@ input: | |
| iced gen_input.iced > input.json | ||
|
|
||
| spec: | ||
| (source py-venv/bin/activate && iced gen_spec.iced ${SCRYPT} ${PBKDF2} ${BU} > ../spec.json) | ||
| (source py-venv/bin/activate && iced gen_spec.iced ${SCRYPT} ${PBKDF2} ${KU} > ../spec.json) | ||
|
|
||
| .PHONY: build-scrypt build-python build | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove these changes? I'm assuming you've installed node as your user and it's in your path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will remove this.