Running SignatureExamplePQ

The SignatureExamplePQ sample application uses the Entrust PQ implementation to:

  1. Generate an ML-DSA-44-ipd key pair

  2. 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.java

Add the following library path to the PATH environment variable.

etjava/libOQSNative/Windows

Run 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

Running 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.java

Add the following library path to the LD_LIBRARY_PATH environment variable.

etjava/libOQSNative/Linux

Run 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