generate AC cryptogram manually

人盡茶涼 提交于 2019-12-03 09:05:54

MasterCard Application Cryptogram (AC) generation is more complicated than other card schemes.

  1. Card can use different ICC Session Key Derivation (SKD) methods:

    • MasterCard Proprietary SKD, where involved Application Transaction Counter (ATC) and Unpredictable Number (UN);
    • EMV2000 Method, where involved only ATC - see EMV 4.0, Book 2;
    • EMV Common Session Key (CSK) Method, where involved only ATC - see EMV 4.2, Book 2;
  2. Data Objects (DO) can be with different sets of additional or modified values:

    • Card Verification Results (CVR) can be 6 or 4 bytes.
    • The offline counters from Issuer Application Data (IAD) can be included.
    • Last online ATC value can be included.

The used method and data variant can be detected by Cryptogram Version Number (CVN) and Application Control bits. CVN is sub-field of IAD tag 0x9F10 .

The detailed information are proprietary and available for the MasterCard members.

For deep learning about it take a look into "M/Chip Card Application Cryptographic Algorithms" and M/Chip Card Application references.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!