Page 1 of 1

how to include derivation class

Posted: Wed Jun 17, 2020 11:50 am
by verena3721
Hello,
I am trying to include the dertivation package into my project https://docs.oracle.com/en/java/javacar ... mmary.html
I've downloaded the JavaCardKit which is supposed to have it included (from Oracle) but i can only find a derivation.exp file. I was hoping for a .jar file .

I have no idea how to include this file into my project.

Thank you

Re: how to include derivation class

Posted: Thu Jun 18, 2020 8:23 am
by kuafu
class of package javacardx.security.derivation is in api_classic-3.1.0.jar

Re: how to include derivation class

Posted: Tue Jun 23, 2020 3:24 am
by verena3721
Thanks for your reply.
Yes I found it and included the api_classic-3.1.0.jar but now I have problems with the export files.

error: export file framework.exp of package javacard.framework not found

I tried making the export files of 3.1.0 to a jar and included it but it still does not work. I am thinking it has something to do with the exportpath maybe?
I am using JCIDE version 5 and I don't know where I could edit this path.

Re: how to include derivation class

Posted: Tue Jun 23, 2020 3:24 am
by verena3721
Okay I figured out I was trying to make a jar file with cf instead of cvf, so the pathes where not the correct ones.

Now I have both added the api_classic and the export files to my project, and now I get following error:

Unsupported export file version number 2.3

Now I dont know what to try next..

Re: how to include derivation class

Posted: Tue Jun 23, 2020 3:48 am
by kuafu
JCKit didn't support java card kit 3.1xx. Please wait next version .

Re: how to include derivation class

Posted: Tue Jun 23, 2020 3:53 am
by verena3721
Alright thank you for your fast reply.

I am trying to code a HKDF, would this be possible without the Derivation package?

Re: how to include derivation class

Posted: Tue Jun 23, 2020 3:59 am
by kuafu
You can build your applet with this build tool .
ant-javacardhttps://github.com/martinpaljak/ant-javacard.
But you can't debug.Because there is no simulator support javacard 3.1.xx.