JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

The Algorithm of traditional Diffie-Hellman

Applets Development Guide

Moderator: product

tay00000
Posts: 161
Joined: Tue Sep 27, 2016 10:58 am
Points :2326
Contact:

The Algorithm of traditional Diffie-Hellman

Post by tay00000 » Thu Oct 20, 2016 10:50 pm

JavaCard standards have not really supported non-ECC/traditional Diffie-Hellman algorithm up till only recently (JC 3.0.5). Anyone who wants to use Diffie-Hellman have to do them manually or simply avoid using the traditional non-ECC Diffie-Hellman.

Here is a Diffie-Hellman library found on Github that allows traditional modular exponential based Diffie-Hellman by manipulating and leveraging the RSA_NOPAD function to execute the modular exponential math that Diffie-Hellman and RSA shares in common. It also uses the RSA key type to generate RSA keypairs as Diffie Hellman keypairs while leveraging the security of the Key type object provided by the card (i.e. tamper resistant key storage, DPA/SPA/DFA protection, glitch protection on the RSA math engine and security memory segment that a card usually have).

The Github repository also provides a link to a Java test client to check if the correctness of the implementation of the Diffie-Hellman applet. by using the desktop side JCE cryptographic library to compare implementations.

Link: https://github.com/ASKGLab/DHApplet

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

Re: The Algorithm of traditional Diffie-Hellman

Post by UNKNwYSHSA » Mon Nov 28, 2016 9:29 pm

Mark.

It seems more RAM used when using this algorithm.
sense and simplicity

tay00000
Posts: 161
Joined: Tue Sep 27, 2016 10:58 am
Points :2326
Contact:

Re: The Algorithm of traditional Diffie-Hellman

Post by tay00000 » Mon Nov 28, 2016 11:52 pm

Yes, it may require more RAM than expected.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 23 guests

JavaCard OS : Disclaimer