3.5.7. digest - calculate digest

3.5.7.1. Usage

digest -a <algo> [-k <key> | -K <file>] [-s <sig> | -S <file>] FILE|AREA

3.5.7.2. Synopsis

Calculate a digest over a FILE or a memory area.

3.5.7.3. Options

-a <algo> hash or signature algorithm to use
-k <key> use supplied <key> (ASCII or hex) for MAC
-K <file> use key from <file> (binary) for MAC
-s <hex> verify data against supplied <hex> (hash, MAC or signature)
-S <file> verify data against <file> (hash, MAC or signature)