Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

ISO/IEC 9797-1

JavaCard Applet Development Related Questions and Answers.
vikas
Posts: 11
Joined: Wed Mar 07, 2018 2:10 am
Points :358
Contact:

ISO/IEC 9797-1

Post by vikas » Mon May 28, 2018 1:02 am

Can anyone explain me ISO/IEC 9797-1 MAC Algorithm 1?
TIA.

AlexLiu
Posts: 17
Joined: Thu Sep 22, 2016 4:52 am
Points :206
Contact:

Re: ISO/IEC 9797-1

Post by AlexLiu » Tue Jun 12, 2018 2:34 am

MAC Algorithm 1 works like the CBC mode of block cipher, with the IV equals to zero.
Step 1 (padding): there are three methods to choose, any one is okay.
Step 2 (splitting): split the padded data to q blocks D1,...,Dq.
Step 3 (initial transformation): using the block cipher key K to encrypt the first block D1.
Step 4 (iteration): this iteration process is same with the CBC mode of block cipher.
Step 5 (output transfromation): this output transformation is the identity function, do not need do anything.
Step 6 (truncation): taking leftmost bits your MAC length need.

AlexLiu
Posts: 17
Joined: Thu Sep 22, 2016 4:52 am
Points :206
Contact:

Re: ISO/IEC 9797-1

Post by AlexLiu » Tue Jun 12, 2018 2:36 am

MAC Algorithm 1 works like the CBC mode of block cipher, with the IV equals to zero.
Step 1 (padding): there are three methods to choose, any one is okay.
Step 2 (splitting): split the padded data to q blocks D1,...,Dq.
Step 3 (initial transformation): using the block cipher key K to encrypt the first block D1.
Step 4 (iteration): this iteration process is same with the CBC mode of block cipher.
Step 5 (output transfromation): this output transformation is the identity function, do not need do anything.
Step 6 (truncation): taking leftmost bits your MAC length need.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 52 guests

JavaCard OS : Disclaimer