The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

Search found 26 matches

by JCaberham
Wed Jul 17, 2019 5:56 am
Forum: Algorithm School
Topic: How to implement RSA 4096 algorithm in java card applet?
Replies: 1
Views: 645

How to implement RSA 4096 algorithm in java card applet?

I want to implement RSA 4096 bit algorithm in my applet,

There is an error when I get the values of N and D parameters.

Is it need to use the extended APDU to receive APDU data?
by JCaberham
Thu Jan 31, 2019 5:51 am
Forum: Algorithm School
Topic: Is there a good way to implement an AES-CMAC encryption on Java Cards?
Replies: 4
Views: 1115

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

You can implement AES-CMAC from scratch using the AES Cipher and Signature objects, and it's possible and not too difficult.
by JCaberham
Thu Mar 22, 2018 8:44 am
Forum: Shopping FAQ
Topic: The A22CR supported algorithms?
Replies: 1
Views: 891

The A22CR supported algorithms?

Does the A22CR card support the following algorithm? javacard.crypto.Signature 4.1 ALG_ECDSA_SHA 4.2 ALG_ECDSA_SHA_160 4.3 ALG_ECDSA_SHA_256 4.4 ALG_ECDSA_SHA_384 4.5 ALG_ECDSA_SHA_224 4.6 ALG_ECDSA_SHA_512 4.7 ALG_HMAC_SHA1 4.8 ALG_HMAC_SHA_256 4.9 ALG_HMAC_SHA_384 4.10 ALG_HMAC_SHA_512
by JCaberham
Wed Sep 27, 2017 5:54 am
Forum: Questions & Answers
Topic: Sinus and Cosinus calculation in javacard?
Replies: 5
Views: 1491

Re: Sinus and Cosinus calculation in javacard?

To handle the angle with decimals, try to use this formula
sin(a+b) =sina*cosb+cosa*sinb
cos(a+b) = cosa*cosb - sina*sinb


Take angle 45.5 as an example,

sin(45+0.5) = sina45*cos0.5 + cos45*sin0.5

But you may need to define 4 arrays sin[0~360], cos[0~360], sin[0.0~0.1],cos[0.0~0.1]
by JCaberham
Wed Sep 06, 2017 10:35 pm
Forum: Questions & Answers
Topic: Issue about using CAC
Replies: 1
Views: 834

Re: Issue about using CAC

Try to google it by typing GSC-IS keywords.
by JCaberham
Mon Aug 28, 2017 5:20 am
Forum: Questions & Answers
Topic: How to invoke a simple java card method?
Replies: 3
Views: 1226

Re: How to invoke a simple java card method?

You'd better carefully study the finished simple applet, e.g. wallet demo..
by JCaberham
Mon Aug 28, 2017 5:14 am
Forum: Questions & Answers
Topic: verify function cannot work
Replies: 2
Views: 1100

Re: verify function cannot work

It seems that the keypair you set is invalid. You do not need to set the keys manually as

Code: Select all

keyPair.genKeyPair();
actually generates a valid keypair for you.
by JCaberham
Thu Aug 17, 2017 6:15 am
Forum: Open Source Applets
Topic: Smart Card Gids Applet
Replies: 12
Views: 9721

Re: Smart Card Gids Applet

In my opinion, this doesn't have any problem. Because GIDS is defined based on windows framework, it's not strange that it cannot work with opensc. But I am not sure if my thought is correct.
by JCaberham
Mon Jul 24, 2017 11:07 pm
Forum: Questions & Answers
Topic: ROM applet
Replies: 1
Views: 722

Re: ROM applet

You can have your applet masked into the ROM by a card manufacturer. This will remove the need for APDU's to install your applet. But you will still need to use APDU's for anything, including embedded applications on the device, to communicate with your applet. A Java Card applet is passive and does...
by JCaberham
Mon Mar 13, 2017 4:21 am
Forum: Algorithm School
Topic: Error when generating CMAC
Replies: 1
Views: 1084

Re: Error when generating CMAC

Your computation method has something wrong. You should notice that: the last block is DES3 encrypted, ICV is last calculated C_MAC
JavaCard OS : Disclaimer