Page 1 of 1

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

Posted: Mon Jan 04, 2016 3:02 am
by shibulijack
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?

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

Posted: Thu Jan 07, 2016 3:44 am
by kurihan
There is no BigInteger mod in Java Card.

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

Posted: Thu Jan 07, 2016 3:46 am
by mabel
Maybe you can try to use BigNat library.

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

Posted: Fri Sep 15, 2017 9:09 am
by vasilis
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

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

Posted: Sat Sep 16, 2017 11:50 pm
by UNKNwYSHSA
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)

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

Posted: Thu Dec 20, 2018 11:15 pm
by zxt12300
some API methonds have been provided in JAVACARD 3.0 , such as javacardx.framework.math