Is there a good way to implement an AES-CMAC encryption on Java Cards?

Algorithm School

Moderator: UNKNwYSHSA

PaulBod
Posts: 2
Joined: Fri Jan 25, 2019 4:34 am
Points :20
Contact:

Is there a good way to implement an AES-CMAC encryption on Java Cards?

Post by PaulBod » Mon Jan 28, 2019 10:47 pm

I can 't find any example or samples of Java card that has AES CMAC encryption. Is there a proper way to implement an AES-CMAC encryption on Java Cards?

tay00000
Posts: 135
Joined: Tue Sep 27, 2016 10:58 am
Points :1732
Contact:

Re: Is there a good way to implement an AES-CMAC encryption on Java Cards?

Post by tay00000 » Tue Jan 29, 2019 6:31 am

Signature.ALG_AES_CMAC_128 is only available from JC 3.0.5 and up.

If you want to implement it yourself, please look at this old forum thread which contains one of our member's source code (https://javacardos.com/javacardforum/vi ... php?t=1114).

JCaberham
Posts: 25
Joined: Mon Nov 30, 2015 3:02 am
Points :192
Contact:

Re: Is there a good way to implement an AES-CMAC encryption on Java Cards?

Post by JCaberham » Thu Jan 31, 2019 5:51 am

You can implement AES-CMAC from scratch using the AES Cipher and Signature objects, and it's possible and not too difficult.

PaulBod
Posts: 2
Joined: Fri Jan 25, 2019 4:34 am
Points :20
Contact:

Re: Is there a good way to implement an AES-CMAC encryption on Java Cards?

Post by PaulBod » Thu Jan 31, 2019 11:08 pm

tay00000 wrote:
Tue Jan 29, 2019 6:31 am
Signature.ALG_AES_CMAC_128 is only available from JC 3.0.5 and up.

If you want to implement it yourself, please look at this old forum thread which contains one of our member's source code (https://javacardos.com/javacardforum/vi ... php?t=1114).
Thanks you very much.
I learned a lot from the link you suggested.

nishakale
Posts: 2
Joined: Fri Feb 01, 2019 1:28 am
Points :18
Contact:

Re: Is there a good way to implement an AES-CMAC encryption on Java Cards?

Post by nishakale » Fri Feb 01, 2019 1:30 am

Excellent topic. Great answers by expert. Thank you.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer