Retail MAC (ANSI X9.19) using block cipher with encrypt-decrypt-encrypt pattern on final block. Two or three key construction commonly used with DES in banking systems.
| Property | Value |
|---|---|
| Category | Message Authentication |
| Sub-category | Block Cipher MAC |
| Security status | 🎓 Educational Only |
| Complexity | Intermediate |
| Inventor | ISO/IEC JTC 1/SC 27 |
| Year | 1999 |
| Origin | Not specified |
| Source | algorithms/mac/iso9797alg3.js |
| Parameter | Supported values |
|---|---|
| MAC sizes | 4 bytes (32 bits) to 16 bytes (128 bits) |
| Flag | Value |
|---|---|
NeedsKey |
Yes |
Status: 🎓 Educational Only
No vulnerabilities are recorded for this implementation.
1 vector ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 — BouncyCastle ISO9797Alg3MacTest Vector #1
| Field | Value |
|---|---|
key |
7ca110454a1a6e570131d9619dc1376e |
input |
48656c6c6f20576f726c642021212121 |
expected |
f09b856213bab83b |