In order to thank you for all members' support of our website, we are holding new events - Getting Free Samples by Paying Freight only.
Want to get free samples? Please check this post for more details.

The Algorithm of traditional Diffie-Hellman

Applets Development Guide

Moderator: product

tay00000
Posts: 112
Joined: Tue Sep 27, 2016 10:58 am
Points :1498
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 :3023
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: 112
Joined: Tue Sep 27, 2016 10:58 am
Points :1498
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 1 guest

JavaCard OS : Disclaimer