Benedict Lau bf6ac6a85a Copied plans to build for ARM from OS X | 10 yıl önce | |
---|---|---|
.. | ||
cmake | 9 yıl önce | |
commandline | 11 yıl önce | |
cpucycles | 11 yıl önce | |
cpuid | 11 yıl önce | |
crypto_auth | 11 yıl önce | |
crypto_box | 11 yıl önce | |
crypto_core | 11 yıl önce | |
crypto_hash | 11 yıl önce | |
crypto_hashblocks | 11 yıl önce | |
crypto_onetimeauth | 11 yıl önce | |
crypto_scalarmult | 11 yıl önce | |
crypto_secretbox | 11 yıl önce | |
crypto_sign | 11 yıl önce | |
crypto_stream | 11 yıl önce | |
crypto_verify | 11 yıl önce | |
curvecp | 11 yıl önce | |
inttypes | 11 yıl önce | |
node_build | 9 yıl önce | |
okcompilers | 11 yıl önce | |
randombytes | 10 yıl önce | |
tests | 10 yıl önce | |
.gitignore | 11 yıl önce | |
CMakeLists.txt | 11 yıl önce | |
CMakeWindows.txt | 11 yıl önce | |
MACROS | 11 yıl önce | |
OPERATIONS | 11 yıl önce | |
PROTOTYPES.c | 11 yıl önce | |
PROTOTYPES.cpp | 11 yıl önce | |
README.md | 11 yıl önce | |
do | 11 yıl önce | |
measure-anything.c | 11 yıl önce | |
try-anything.c | 11 yıl önce | |
version | 11 yıl önce |
If you would like to be confusing, you could pronounce it sea-salt
This is a fork NaCl by Daniel J. Bernstein and Tanja Lange. The build has been ported to cmake so it can be cross compiled and build output is reliable. Since it uses cmake, it could theoretically be built on windows but this has not been tested. It does compile using mingw32.
mkdir cbuild
cd cbuild
cmake ..
make
mkdir cbuildw32
cd cbuildw32
cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeWindows.txt ..
make
NaCl builds using a shell script called ./do
. This script does compiling, testing, measuring
and selection of the best implementation of each algorithm for the given machine. It also generates
the header files which will be used.
The problems with ./do
are it's slow, it tries compiling with multiple different compiler
profiles, it's very platform independent but it doesn't run on Windows and most importantly, with
compiling, testing and measuring so tightly bound, it is impossible to cross compile for a
different operating system.
The first time you build for a new ABI, it will trigger the traditional nacl ./do
script.
What cNaCl does is parse the resulting headers from the ./do
build and create a plan so that it
can repeat roughly the same build.
If there is already a plan for the given ABI, the build uses this plan and the build is very fast.
Plans are stored in ./cmake/plans/
and I will be adding plans as I find new ones.
There is a problem with the ./do
build which prevents it from running on some ARM based machines,
this was fixed by adding a more lax method for measuring CPU speed as a fall back.
#EOF#