Announce two new product: SmartCard Reader Rockey200 and USB2.0 Extension Cable

ROCKEY 200 is a handy and portable USB Smart Card reader that can perform read/write operations on any ISO 7816-1/2/3/4 smart cards which are compatible with protocol T=0 and T=1.

USB2.0 Extension Cable With high speed USB 2.0 devices such as USB token ,USB Card Reader and so on.

Come to try it now!

Encryption using secure element/domain keys

Applets Development Guide

Moderator: product

Posts: 1
Joined: Wed Feb 28, 2018 6:29 pm
Points: 30

Encryption using secure element/domain keys

Postby osbock » Tue Apr 24, 2018 2:45 pm

I was under, the perhaps mistaken, impression, that I could ask the system to encrypt something for me using the system's pre-set keys.
with globalplatformpro tool I can set the --key-dec --key-enc etc. I'm interested in symmetric encryption, so card generated keys are kindof out.

I was thinking I could use --key-enc (DEK key) and have the card encrypt stuff for me. on the back end I would have the key I originally specified to do the decryption. I thought I had found a sample code for this, but now my google-fu has failed me.

If this doesn't work, I assume I have to implement my own set-key method, and persistently store the key object. Any other pointers on this?

Posts: 14
Joined: Mon Sep 18, 2017 9:52 pm
Points: 150

Re: Encryption using secure element/domain keys

Postby roundtable » Tue May 15, 2018 8:34 am

Yes, you may misunderstand the purpose of key-enc (DEK key), which is used to establish secure Communication channel between SE and external entity to loading or personalizing application instead of general purpose cipher. If you want to use SE to encrypt or decrypt data for you, you should write your own specific application to pocess your defined commands.

Return to “Applets Development Guide”

Who is online

Users browsing this forum: No registered users and 0 guests

JavaCard OS : Disclaimer