Function Block CRYPT_HMAC

The Function Block CRYPT_HMAC calculates the HMAC hash of a string according to the configuration.

Input DATA

Defines the string from which the hash is calculated.

Input KEY

Defines the key used for calculation.

Input ALGO

Defines the algorithm to be used to generate the hash value. If no value is specified, the algorithm sha256 is used. The following algorithms are supported:

  • md2
  • md4
  • md5
  • sha1
  • sha224
  • sha256
  • sha384
  • sha512
  • ripemd128
  • ripemd160
  • ripemd256
  • ripemd320
  • whirlpool
  • tiger128,3
  • tiger160,3
  • tiger192,3
  • tiger128,4
  • tiger160,4
  • tiger192,4
  • snefru
  • snefru256
  • gost
  • gost-crypto
  • adler32
  • crc32
  • crc32b
  • fnv132
  • fnv1a32
  • fnv164
  • fnv1a64
  • joaat
  • haval128,3
  • haval160,3
  • haval192,3
  • haval224,3
  • haval256,3
  • haval128,4
  • haval160,4
  • haval192,4
  • haval224,4
  • haval256,4
  • haval128,5
  • haval160,5
  • haval192,5
  • haval224,5
  • haval256,5

Input BINARY

If the input is true, a binary output is generated. This corresponds to post-processing using Function Block HEX2BIN. However, it is much more efficient.

Output HASH

The checksum is output at the output as a hexadecimal string or binary value.