Verify-hash commands
This section covers commands that you use in SMCTL to verify a hash.
Verify-hash
Verify-hash commands begin with:
smctl sign verify-hash <keypair ID>
Subcommands
The verify-hash command supports these subcommands:
tabel 1. Flag for managing hash verification
Shortcut | Flag | Description |
---|---|---|
--file string | File path. | |
--hash string | Base64 hash. | |
--hash-algorithm string | Hash algorithm. (default "SHA-256") | |
--signature string | Base64 Signature. | |
--signature-algorithm string | Signature algorithm. (default "SHA256withRSA"). | |
--signature-file string | Signature file path. | |
-h | --help | Help for sign-hash commands. |
Command example
Description: Verify hash.
Command:
smctl sign verify-hash --file <file path> --hash-algorithm <hash algorithm> --signature-algorithm <signature algorithm> --signature-file <path to signature file> <keypair ID>
Command sample:
smctl sign verify-hash --file UNSIGNED_JAR.jar --hash-algorithm SHA-512 --signature-algorithm MLDSA44 --signature-file mldsasign44.txt c16f3975-101b-4837-8de5-42160e791220