- Python 2.x
- a recent Emscripten, which in turn has dependencies on:
- LLVM 3.2
- Clang 3.2
- Node.js 0.6.12 or newer
- Python 2.7.3
- Node.js and npm to run the mocha-based tests
naclwith a pynacl-compatible implementation of
crypto_sign_keypair_from_raw_sk, the foundation for
nacl_randombytes_emscripten.jsis infrastructure for making the Emscripten-compiled library parameterized in its source of randomness.
test/runner.htmlruns the Mocha tests in the browser.
test/tests.jsis the source code for the test cases themselves.
Follow the instructions from the Emscripten tutorial to get Emscripten ready to run.
emcc is on your
$PATH somewhere, use the
To rebuild everything:
make veryclean all
This will completely remove any compilation products, and recompile everything.
Other Makefile targets:
make test: builds the library if necessary and then runs the test suite using node.js.
make veryclean: as
make clean, but also removes the
subnacldirectory and the contents of the
make all: performs all the build steps.
If you for some reason need to use a different python than
PYTHON makefile variable; for example,
EMCC to the path to your
emcc binary if it's not on
The build products will be in
node_raw.js: output from Emscripten
nacltarball, after processing by