Running SignatureExampleComposite

The SignatureExampleComposite sample application uses the Entrust PQ (Post-quantum) implementation to:

  1. Generate an MLDSA65-ECDSA-P256-SHA512 composite 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.

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

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