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.

can't install Applet successfully

JavaCard Applet Development Related Questions and Answers.
Jpita
Posts: 6
Joined: Thu Apr 21, 2016 3:37 am
Points :58
Contact:

can't install Applet successfully

Post by Jpita » Tue Oct 25, 2016 2:00 am

I got stuck in a strange problem. I always failed to install my applet no matter in JCIDE simulator or in real card.
But I found that when I annotated this code line, it can run w/o any problem.

Code: Select all

HMACKey hmacKey = (HMACKey) KeyBuilder.buildKey(KeyBuilder.TYPE_HMAC,KeyBuilder.LENGTH_HMAC_SHA_1_BLOCK_64, false);

Does this line have any problem?

chico0609
Posts: 59
Joined: Mon Sep 14, 2015 5:05 am
Points :416
Contact:

Re: can't install Applet successfully

Post by chico0609 » Tue Oct 25, 2016 2:59 am

It might be because either JCIDE simulator or your real card doesn't support the algorithm or key size.

popmun09
Posts: 36
Joined: Tue Feb 16, 2016 9:49 pm
Points :230
Contact:

Re: can't install Applet successfully

Post by popmun09 » Tue Oct 25, 2016 4:23 am

JCIDE doesn't support HMAC. You can use SHA1 instead.

Jpita
Posts: 6
Joined: Thu Apr 21, 2016 3:37 am
Points :58
Contact:

Re: can't install Applet successfully

Post by Jpita » Tue Oct 25, 2016 10:00 pm

popmun09 wrote:JCIDE doesn't support HMAC. You can use SHA1 instead.


Can you show me a sample code of SHA1? If any example exists, I would be greatly appreciated.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 50 guests

JavaCard OS : Disclaimer