1HMAC256(1) Libgcrypt HMAC256(1)
2
3
4
6 hmac256 - Compute an HMAC-SHA-256 MAC
7
9 hmac256 [--binary] key [FILENAME]
10
11
13 This is a standalone HMAC-SHA-256 implementation used to compute an
14 HMAC-SHA-256 message authentication code. The tool has originally been
15 developed as a second implementation for Libgcrypt to allow comparing
16 against the primary implementation and to be used for internal consis‐
17 tency checks. It should not be used for sensitive data because no
18 mechanisms to clear the stack etc are used.
19
20 The code has been written in a highly portable manner and requires only
21 a few standard definitions to be provided in a config.h file.
22
23
24 hmac256 is commonly invoked as
25
26 hmac256 "This is my key" foo.txt
27
28
29 This compute the MAC on the file ‘foo.txt’ using the key given on the
30 command line.
31
32
34 hmac256 understands these options:
35
36
37
38 --binary
39 Print the MAC as a binary string. The default is to print the
40 MAC encoded as lower case hex digits.
41
42
43 --version
44 Print version of the program and exit.
45
46
48 sha256sum(1)
49
50
51
52Libgcrypt 1.10.2-unknown 2023-07-20 HMAC256(1)