IT lexicon › Security › Key diversification

Key diversification

Security På svenska → Updated: 2026-10-13

Giving every card or device its own key, derived from a master key and the device's identity, so one broken device doesn't break them all.

The issuer keeps a master key in an HSM. When a card is personalised, its key is computed as an encryption or MAC of the card's unique identity — the card number, say, or the chip UID — under the master key. The card carries only its own key. The terminal, or a SAM module inside it, can recompute the same key after reading the identity, with no key database involved.

The technique is standard in EMV payment cards and is spelled out for NXP's DESFire cards in application note AN10922. The upside: whoever extracts the key from one card has exactly one card. The downside: the master key becomes an even more obvious single target, which is why it must never leave the HSM. DUKPT applies the same idea per transaction rather than per card.

← Back to the lexicon