Skip to contentNVIDIAQuantumComputing.ai is a member of NVIDIA Inception.Explore the program
Engineering walkthrough

Run an ML-DSA signature smoke test with OpenSSL

QCAI guide cover: Run an ML-DSA signature smoke test with OpenSSL

THE SHORT ANSWER

Sign a disposable payload, verify the original and check that a modified copy fails verification. Use the result to define evidence for your signing pilot.

Test the same signature against two payloads

Start an ML-DSA signing pilot with two checks: verify a signature against the exact bytes you signed, then confirm verification fails after changing those bytes. This small test gives reviewers a concrete success case and a failure case before you introduce packaging, distribution or multiple verifiers.

NIST FIPS 204 specifies ML-DSA for digital signatures. OpenSSL added ML-DSA support in version 3.5. This walkthrough uses ML-DSA-65 as an example parameter set. Select production parameters with the team responsible for your protocol and security requirements.

Run the lab with disposable keys

Use an OpenSSL build with ML-DSA enabled. Run these commands in a fresh temporary directory in a POSIX shell. The lab uses synthetic text and a throwaway private key. The script removes the directory on exit.

set -eu
work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT
cd "$work"
umask 077

openssl version
printf 'artifact revision A\n' > message.txt
printf 'artifact revision B\n' > changed.txt
openssl genpkey -algorithm ML-DSA-65 -out private.pem
openssl pkey -in private.pem -pubout -out public.pem
openssl pkeyutl -sign -inkey private.pem -in message.txt -out message.sig
openssl pkeyutl -verify -pubin -inkey public.pem -in message.txt -sigfile message.sig
if openssl pkeyutl -verify -pubin -inkey public.pem -in changed.txt -sigfile message.sig; then
  echo 'Unexpected acceptance of modified payload' >&2
  exit 1
fi

The second verification command should fail because the input differs. Inspect the diagnostic before recording the check as passed. A missing file, an unavailable provider or a key parsing error can also produce a nonzero exit status.

What the run showed

In a local run on November 5, 2026 using OpenSSL 4.1.0, the original payload verified successfully. The modified payload produced a signature verification failure using the same signature and public key. The example exercises one installation and one payload pair.

Carry the test into your pilot

Record the exact tool version, provider configuration, selected parameter set, input bytes and verification outcomes. Retain only approved public artifacts and sanitized logs. For a release-signing pilot, repeat the checks at the actual signing and verification boundaries. Decide how the verifier obtains and trusts the public key, and check whether packaging or transport changes the bytes that reach it.

A local pass leaves interoperability, key lifecycle, certificate handling and deployment behavior to be tested in their own environments. Add those questions to your pilot brief before expanding the scope.

Go to the source.

  1. FIPS 204: Module-Lattice-Based Digital Signature Standard ↗ — NIST
  2. ML-DSA key types and support ↗ — OpenSSL
  3. pkeyutl signing and verification ↗ — OpenSSL
Educational guidance. Confirm system-specific choices with your security and engineering teams.

Make it a team conversation.

Use six questions to organize your planning gaps and share a checklist with your team.

Build a team checklist →

Keep exploring.

Build your understanding →