Page 1 of 1

MAC Algorithm

Posted: Mon Aug 01, 2016 10:28 am
by aahmadzadeh
What is the most secure MAC generation algorithm in java cards that its output length is at most 16 bytes (<= 16 bytes)?

Thanks

Re: MAC Algorithm

Posted: Mon Aug 01, 2016 10:03 pm
by UNKNwYSHSA
See JavaCard API 3.0.4: javacard.security.Signature

And here is the online version of JC API v2.2.2:
http://javacardos.com/wiki/index.php/ho ... ature.html

Re: MAC Algorithm

Posted: Mon Aug 01, 2016 10:45 pm
by aahmadzadeh
UNKNwYSHSA wrote:See JavaCard API 3.0.4: javacard.security.Signature

And here is the online version of JC API v2.2.2:
http://javacardos.com/wiki/index.php/ho ... ature.html

Yes, i know that there are various algorithms, but i want to know which of those (that have output <= 16 bytes) are strongest and most secure?

Thanks

Re: MAC Algorithm

Posted: Tue Aug 02, 2016 2:02 am
by UNKNwYSHSA
You can choose ALG_AES_MAC_128_NOPAD.