Hello.
Included is a make file that's specific to OS X and gcc for the C implementation of NTRU. Please also modify your other make files and include the Wextra option. You'll discover some unused variables. You may wish to modify Makefile and add libntru.dylib to the clean target.
I tested the library via make -f Makefile.osx test.
DYLD_LIBRARY_PATH=. ./test
Running tests...
test_mult_int ✓
test_mult_tern ✓
test_mult_prod ✓
test_inv ✓
test_arr ✓
test_keygen ✓
test_encr_decr ✓
test_idxgen ✓
test_append ✓
test_trailing ✓
test_leading ✓
test_key ✓
test_hash ✓
All tests passed
Thanks!
I added your Makefile for Mac OS and included -Wextra. Those warnings about unused parameters are just noise because they are about things like arguments to main() not being used, so I also added -Wno-unused-parameter.
I pushed the changes to https://github.com/tbuktu/libntru/.
I wasn't able to test on Mac OS X because I don't currently have access to a Mac. Let me know if everything works for you.
Thanks,
Tim
There is a question mark following the CC. Once corrected, the compilation completes. Thank you.
And please remove the dylib flag from the lib target because dynamiclib suffices. I tested the library with clang and it also passed.
Thank you.
The '?' and -dylib are gone and it's been pushed to GitHub.
Thanks,
Tim