Page 1 of 1

How to implement os2ip and i2osp as per PKCS#1 specification in javacard ?

Posted: Mon Feb 24, 2020 7:42 am
by nikhilnick23
Hello All

I need to implement OS2IP and I2OSP as per PKCS#1 specifications but there is one challenge.

In java there is one class BigInterger which we can use to perform both arithmetic and modulo arithmetic operations on Big integer values.

But how do we implement the same in case of javacard ? Although there is one class BigNumber which we can may be use to perform arithmetic operations(but no modulo arithmetic operations) on big integers values but its limitation is only upto 8 bytes what about really big integer values like 150-160 digits long ?