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