Running SignatureExampleComposite
The SignatureExampleComposite sample application uses the Entrust PQ (Post-quantum) implementation to:
Generate an MLDSA65-ECDSA-P256-SHA512 composite 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.
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.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.SignatureExampleCompositeRunning 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.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.SignatureExampleComposite