JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
How to compute values using ' log' and 'sqrt' on javacard ?
Moderator: UNKNwYSHSA
How to compute values using ' log' and 'sqrt' on javacard ?
Recently,I need to compute values using log and sqrt on a JavaCard. Is there any class for javacard to solve this issue ?
Many thanks.
Many thanks.
Last edited by btwtiger on Wed Jun 10, 2015 10:31 pm, edited 4 times in total.
Onward...
- horse dream
- Posts: 76
- Joined: Thu May 21, 2015 11:48 pm
- Points :140
- Contact:
Re: How to compute values using ' log'?
Javacard doesn't support Math class and also only supports boolean, byte, short, and optionally int. Maybe you can create your own class with tricky ways and of course the result is not precise. If you let server/terminal side do complex calculation/encryption, the card only stores data,maybe you can get it working.
Last edited by horse dream on Wed Jun 10, 2015 9:51 pm, edited 1 time in total.
Re: How to compute values using ' log'?
horse dream wrote:Javacard doesn't support Math class and also only supports boolean, byte, short, and optionally int. Maybe you can create your own class with tricky ways and of course the result is not precise. If you let server/terminal side do complex calculation/encryption, the card only stores data,maybe you can get it working.
Sorry to tell you I have to do all the calculation on the card side. Anyhow,thank you for your attention.
Onward...
Re: How to compute values using ' log' on javacard ?
I've not came across such a class yet. The only way to meet your request is to use some limited tricks with the crypto API.
Re: How to compute values using ' log' on javacard ?
Larson wrote:I've not came across such a class yet. The only way to meet your request is to use some limited tricks with the crypto API.
Would you please give me a example ?
Onward...
Re: How to compute values using ' log' on javacard ?
e.g. You can perform an RSA modulo exponentiation using 2 as public key and a large modulus to perform squares.
Who is online
Users browsing this forum: No registered users and 7 guests