Message Digest (-DIGEST)
Use the Message Digest adapter command (-DIGEST) to obtain the message digest for the specified message. The MD5 and SHA1 message digests can be calculated. The syntax is:
-DIGEST [OPGP|SMIME] [MD5|SHA1]
where SMIME is the default adapter to invoke for backwards compatibility, and MD5 is the default algorithm.
This is an optional command.
If this command is specified in an input card, the message digest will be calculated and returned back to the map. The rules for specifying the algorithm parameter are:
- If the original message is signed and the algorithm is not specified, the algorithm that was used in signing the message will be used to calculate the digest.
- If the original message is not signed and the algorithm is not specified, MD5 shall be used.
- If the algorithm is specified, this algorithm shall be used regardless of the algorithm used to sign the message.