TOOLS / MAC

MAC ANSI X9.9/X9.19

Calculate X9.9 and X9.19 retail MAC.

Algorithm

Single DES CBC-MAC · 8-byte key · zero IV.

Zero-pad to an 8-byte boundary; aligned data gets no extra block.

Calculator reference

Verification evidence and limitations →

What it calculates

Computes a DES CBC-MAC or a retail MAC.

Inputs and methods

Algorithm 1 uses an 8-byte DES key; Algorithm 3 uses a 16-byte TDES key. HEX input and mode-specific padding.

Worked example

Select X9.19, key 0123456789ABCDEFFEDCBA9876543210, data HEX 4E6F77206973207468652074696D6520666F7220616C6C20.

A1C72E74EA3FA9B6

Specification and limits

The example is ASCII “Now is the time for all ” including its final space. Input padding changes the result.

ISO 9797-1 catalogue ↗