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 do decryption using java card
How to do decryption using java card
I am going to do decryption using java card. I wonder if the following operation is correct. If I have made any mistake, please correct me!
Here are my operation.
STEP 1
(1) from an app on the pc, generate a RSA keypair
(2) call the getencoded() method on the privatekey object to get the bytes, and using an applet which
I have created on the card, write these bytes on the card
(3) call getencoded() on the publickkey object, and save the bytes in a database
STEP 2
(1) server - encrypt some data using the public key from the database
(2) send this encrypted data to the client
(3) client passes this data to the card applet, which then decrypts this data using the private key stored on it in step 1.
Here are my operation.
STEP 1
(1) from an app on the pc, generate a RSA keypair
(2) call the getencoded() method on the privatekey object to get the bytes, and using an applet which
I have created on the card, write these bytes on the card
(3) call getencoded() on the publickkey object, and save the bytes in a database
STEP 2
(1) server - encrypt some data using the public key from the database
(2) send this encrypted data to the client
(3) client passes this data to the card applet, which then decrypts this data using the private key stored on it in step 1.
Re: How to do decryption using java card
Your operation is feasible.
A small tip:
Take care about amounts of information to decrypt. As you know, assymetric ciphering is not a quick thing and if you will try to decrypt too much data using javacard, it will take too much time.
A small tip:
Take care about amounts of information to decrypt. As you know, assymetric ciphering is not a quick thing and if you will try to decrypt too much data using javacard, it will take too much time.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela
Who is online
Users browsing this forum: No registered users and 56 guests