noqtis-verify —
check an ML-DSA or SLH-DSA signature of a file
noqtis verify |
-p key.pub
-s sig
[-c ctx]
[--ph hash]
[-q] file |
noqtis verify |
-p key.pub
--dsse [-o
payload] [-q]
envelope |
noqtis verify checks that
sig is a valid signature of the bytes of
file under the public key in
key.pub. On success it prints
<file>: OK
(<alg>)-’
for standard input.
-p
key.pub,
--pub=key.pubnoqtis-key-1
<alg> pub’). The algorithm comes from the key
file.-s
sig,
--sig=sig-c
ctx,
--ctx=ctx--ph
hash-q,
--quiet--dsse--as dsse) instead: one of
its signatures must verify under key.pub over the
envelope's pre-authentication encoding; then
‘<envelope>: OK (<alg>), payloadType
<type>’ is printed.-o
payload,
--out=payload--dsse: write the envelope's payload to
payload.$ noqtis verify -p me.pub -s report.pdf.sig report.pdf report.pdf: OK (ML-DSA-65) $ echo changed >> report.pdf $ noqtis verify -p me.pub -s report.pdf.sig report.pdf; echo $? noqtis verify: report.pdf: FAILED: the signature does not verify 1
In a script:
if noqtis verify -q -p me.pub -s data.sig data.csv; then echo trusted fi
noqtis(1), noqtis-export(1), noqtis-sign(1), nqdsse(3), nqsign(3)