Page 1 of 1
ALG_EC_SVDP_DH_PLAIN in the simulator
Posted: Wed Aug 08, 2018 3:05 am
by hosseinpro
Hi
I want to test my applet which uses ALG_EC_SVDP_DH_PLAIN supported from JavaCard 3.0.1.
I selected Java card kit 3.0.4 in
JCIDE and it compiles my code successfully. But when I run my code in
JCIDE Simulator, it returns error and does not support ALG_EC_SVDP_DH_PLAIN.
Does
JCIDE simulator support java card 3.0.1?
if not, can I add jCardSim as a simulator to
JCIDE?
Re: ALG_EC_SVDP_DH_PLAIN in the simulator
Posted: Wed Aug 08, 2018 3:48 am
by hosseinpro
This is my code and I got No_Such_ALGORITHM exception.
Code: Select all
private KeyAgreement ecdh;
public MyApplet()
{
try{
ecdh = KeyAgreement.getInstance(KeyAgreement.ALG_EC_SVDP_DH_PLAIN, false);
}
catch(CryptoException e){
if(e.getReason() == CryptoException.NO_SUCH_ALGORITHM){
ecdh = null;
}
else{
throw e;
}
}
}
Re: ALG_EC_SVDP_DH_PLAIN in the simulator
Posted: Wed Aug 08, 2018 3:58 am
by kuafu
hosseinpro wrote: ↑Wed Aug 08, 2018 3:05 am
Hi
I want to test my applet which uses ALG_EC_SVDP_DH_PLAIN supported from JavaCard 3.0.1.
I selected Java card kit 3.0.4 in
JCIDE and it compiles my code successfully. But when I run my code in
JCIDE Simulator, it returns error and does not support ALG_EC_SVDP_DH_PLAIN.
Does
JCIDE simulator support java card 3.0.1?
if not, can I add jCardSim as a simulator to
JCIDE?
All the simulator in
JCIDE didn't support ALG_EC_SVDP_DH_PLAIN.
And you can't add jCardSim as a simulator to
JCIDE.
You should test your code in eclipse with jCardsim.
How to use jCardsim
viewtopic.php?f=25&p=5099#p5099
Re: ALG_EC_SVDP_DH_PLAIN in the simulator
Posted: Thu Aug 09, 2018 12:59 am
by hosseinpro
How can I run jCardSim in Eclipse for debugging?
Re: ALG_EC_SVDP_DH_PLAIN in the simulator
Posted: Thu Aug 09, 2018 12:59 am
by hosseinpro
How can I run jCardSim in Eclipse?
Re: ALG_EC_SVDP_DH_PLAIN in the simulator
Posted: Thu Aug 09, 2018 1:00 am
by hosseinpro
How can I run jCardSim in Eclipse?