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.

Are there functions like BigInteger.modPow, modMul in JavaCard?

Communication

Moderator: UNKNwYSHSA

shibulijack
Posts: 8
Joined: Tue Dec 15, 2015 2:09 am
Points :53
Contact:

Are there functions like BigInteger.modPow, modMul in JavaCard?

Post by shibulijack » Mon Jan 04, 2016 3:02 am

I am trying to implement my own Encryption Algorithm. Are there functions like BigInteger.modPow, modMul in JavaCard. And are there any libraries to do this?

kurihan
Posts: 17
Joined: Mon Dec 07, 2015 11:17 pm
Points :122
Contact:

Re: Are there functions like BigInteger.modPow, modMul in JavaCard?

Post by kurihan » Thu Jan 07, 2016 3:44 am

There is no BigInteger mod in Java Card.

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: Are there functions like BigInteger.modPow, modMul in JavaCard?

Post by mabel » Thu Jan 07, 2016 3:46 am

Maybe you can try to use BigNat library.

vasilis
Posts: 2
Joined: Fri Sep 15, 2017 8:56 am
Points :38
Contact:

Re: Are there functions like BigInteger.modPow, modMul in JavaCard?

Post by vasilis » Fri Sep 15, 2017 9:09 am

Apologies for digging an old thread out.

Just wanted to mention JCMathLib, which (among others) provides a big number class and modulo operations.

We have our source code and documentation here: https://opencryptojc.org

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Are there functions like BigInteger.modPow, modMul in JavaCard?

Post by UNKNwYSHSA » Sat Sep 16, 2017 11:50 pm

You can ask card provider to implemente BigInteger functions into CardOS.
JavaCardOS can do that. You can contact them for your requirement. (Through email: javacardos@gmail.com)
sense and simplicity

zxt12300
Posts: 7
Joined: Thu Dec 20, 2018 5:23 am
Points :130
Contact:

Re: Are there functions like BigInteger.modPow, modMul in JavaCard?

Post by zxt12300 » Thu Dec 20, 2018 11:15 pm

some API methonds have been provided in JAVACARD 3.0 , such as javacardx.framework.math

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 16 guests

JavaCard OS : Disclaimer