Crypto calculators in the workbench
The workbench’s Crypto tab works out the values payment tests need, with the same crypto library the HSM simulator and simulated hosts use, so what it gives you is what the Platform itself computes. It’s for test keys and test cards: nothing you enter is saved, and a link to the tab never carries keys or values.
Choose a calculator on the left. Each opens with a worked example filled in; change any value and Calculate. Every result can be copied.
| Group | Calculators |
|---|---|
| Keys | Key check value (TDES or AES, encrypting zeros or CMAC) and odd parity; generate a test key |
| PIN blocks | ISO 9564-1 formats 0 to 4: the clear block; encrypt; decrypt; translate to another key or format, as a switch’s HSM does |
| DUKPT | TDES (ANSI X9.24-1): initial key, transaction key, PIN, MAC and data working keys, next KSN. AES (X9.24-3): initial and working keys |
| MACs | ISO 9797-1 algorithm 3 (the retail MAC) and 1, AES-CMAC and TDES-CMAC |
| Card values | CVV, CVV2 and iCVV from a CVK pair; Visa PVV; IBM 3624 offsets, and the PIN an offset gives |
| EMV | The card’s master and session keys and the ARQC for Visa CVN 10, 18 and 22, Mastercard and Interac versions; ARPC methods 1 and 2 |
| Key blocks | TR-31 wrap and unwrap, versions B, C and D, with the key’s check value |
A card number that might be real is reported under the result, as everywhere in the workbench; it isn’t refused, since nothing is sent anywhere. To use these values in tests, scenarios can have the HSM make them with hsm steps (see the HSM walkthrough, section 7).