Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

any class who do ==> ISO ISO/IEC 9797-1 padding 2 algorithm 3

843851Feb 26 2010 — edited Apr 7 2010
Hi all,

Working on java cards, I need to crypt a bytes array using a 3DES key like :

MAC = RetailMAC [S'] <Kmac>

- S' is the array

- Kmac is the 3DES key

- MAC is the result

(this is what I have in my spec).

The only information I have about RetailMAC is ISO ISO/IEC 9797-1 padding 2 algorithm 3.

Unfortunately, I don't have this ISO...

I'm looking for a class with method (in JAVA) which implement this algo.

I found this but don't know if it is correct or not :
cipherCBC = Cipher.getInstance(Cipher.ALG_DES_CBC_ISO9797_M2, false);
but I don't know if "ALG_DES_CBC_ISO9797_M2" is the correct argument.

[javadoc of cipher class |http://www.informatik.uni-augsburg.de/swt/lehre/javacard/JavaCard-2.1-API/javacardx.crypto.Cipher.html#ALG_DES_ECB_ISO9797_M2]

Any help is welcome !

Gilloull
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2010
Added on Feb 26 2010
26 comments
3,313 views