Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

hmac256 (1)

Name

hmac256 - 256 MAC

Synopsis

hmac256 [--binary] key [FILENAME]

Description

HMAC256(1)                         Libgcrypt                        HMAC256(1)



NAME
       hmac256 - Compute an HMAC-SHA-256 MAC

SYNOPSIS
       hmac256 [--binary] key [FILENAME]


DESCRIPTION
       This  is  a  standalone  HMAC-SHA-256 implementation used to compute an
       HMAC-SHA-256 message authentication code.  The tool has originally been
       developed  as  a second implementation for Libgcrypt to allow comparing
       against the primary implementation and to be used for internal  consis-
       tency  checks.   It  should  not  be used for sensitive data because no
       mechanisms to clear the stack etc are used.

       The code has been written in a highly portable manner and requires only
       a few standard definitions to be provided in a config.h file.


       hmac256 is commonly invoked as

         hmac256 "This is my key" foo.txt


       This  compute  the MAC on the file `foo.txt' using the key given on the
       command line.


OPTIONS
       hmac256 understands these options:



       --binary
              Print the MAC as a binary string.  The default is to  print  the
              MAC encoded has lower case hex digits.


       --version
              Print version of the program and exit.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-----------------------------------+
       |ATTRIBUTE TYPE |         ATTRIBUTE VALUE           |
       +---------------+-----------------------------------+
       |Availability   | system/library/security/libgcrypt |
       +---------------+-----------------------------------+
       |Stability      | Pass-through volatile             |
       +---------------+-----------------------------------+

SEE ALSO
       sha256sum(1)



NOTES
       Source  code  for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source                was                downloaded                from
       https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.8.tar.bz2.

       Further information about this software can be found on the open source
       community website at https://gnupg.org/software/libgcrypt/.



Libgcrypt 1.8.8                   2022-06-28                        HMAC256(1)