Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 712 Bytes

compile-argon2.md

File metadata and controls

8 lines (7 loc) · 712 Bytes

How to compile Argon2 yourself

  1. Clone Argon2 source: git clone git@github.com:P-H-C/phc-winner-argon2.git
  2. cd phc-winner-argon2.git
  3. Compile and test it: make && make test
  4. Copy the library (name usually starts with libargon2) to a place of your choice
  5. Set the Java system property jna.library.path to the directory where your library is stored. Example: The library is located in /home/moe/tmp/phc-winner-argon2/libargon2.so. Start your Java application with -Djna.library.path=/home/moe/tmp/phc-winner-argon2/
  6. If it doesn't work, set the Java system property jna.debug_load to true. This will print JNA library lookup details to the console. Example: -Djna.debug_load=true