Running SignatureExamplePQ
The SignatureExamplePQ sample application uses the Entrust PQ implementation to:
Generate an ML-DSA-44-ipd key pair
Use this key pair to sign data and verify signatures.
See below for how to compile and run this sample.
This sample requires downloading and extracting the etjava90_pqbeta.zip file as explained in Installation.
Compiling SignatureExamplePQ in Windows
Open a shell in the etjava/examples folder and compile the sample.
javac -cp ../lib/enttoolkit.jar;../lib/entpq.jar com/entrust/toolkit/examples/crypto/SignatureExamplePQ.javaAdd the following library path to the PATH environment variable.
etjava/libOQSNative/WindowsRun the sample.
java -classpath .;../lib/enttoolkit.jar;../lib/entpq.jar;../lib/AcornPQJCA-1.8-SNAPSHOT.jar;../lib/liboqs-java.jar;../lib/PQPlugins-0.0.9-SNAPSHOT.jar com.entrust.toolkit.examples.crypto.SignatureExamplePQRunning SignatureExamplePQ in Linux
Open a shell in the etjava/examples folder and compile the sample.
javac -cp ../lib/enttoolkit.jar:../lib/entpq.jar com/entrust/toolkit/examples/crypto/SignatureExamplePQ.javaAdd the following library path to the LD_LIBRARY_PATH environment variable.
etjava/libOQSNative/LinuxRun the sample.
java -classpath .:../lib/enttoolkit.jar:../lib/entpq.jar:../lib/AcornPQJCA-1.8-SNAPSHOT.jar:../lib/liboqs-java.jar:../lib/PQPlugins-0.0.9-SNAPSHOT.jar com.entrust.toolkit.examples.crypto.SignatureExamplePQ