Menu

#2 OS X make file for C implementation.

closed
nobody
None
5
2015-02-20
2014-04-14
No

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

1 Attachments

Discussion

  • Tim Buktu

    Tim Buktu - 2014-04-14

    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/.

     
  • Tim Buktu

    Tim Buktu - 2014-04-14

    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

     
  • Anonymous

    Anonymous - 2014-04-15

    There is a question mark following the CC. Once corrected, the compilation completes. Thank you.

     
  • Anonymous

    Anonymous - 2014-04-15

    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.

     
  • Tim Buktu

    Tim Buktu - 2014-04-15

    The '?' and -dylib are gone and it's been pushed to GitHub.
    Thanks,

    Tim

     
  • Tim Buktu

    Tim Buktu - 2015-02-20
    • Status: open --> closed
     

Log in to post a comment.

Monday.com Logo