The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

Search found 3 matches

by Garfield
Wed Jul 17, 2019 6:31 am
Forum: Applets Development Guide
Topic: How to throw an exception in my applet
Replies: 5
Views: 1735

Re: How to throw an exception in my applet

Does it only throw 0x6F00? How one can throw the reason for an specific exception? you can throw any short value . such as ISOException.throwIt((short)0x6899); or ISOException.throwIt((short)0x2222); suppose that I do an encryption without first generating the key (run time error), does'nt the func...
by Garfield
Tue Jun 12, 2018 4:24 am
Forum: Algorithm School
Topic: How to get V value when ECC signature?
Replies: 0
Views: 694

How to get V value when ECC signature?

In javacard OS,the returns value of Signature function only contain R and S.
How can I get the V value by R,S and public Key ?
by Garfield
Tue Jun 12, 2018 3:10 am
Forum: Applets Development Guide
Topic: How to throw an exception in my applet
Replies: 5
Views: 1735

Re: How to throw an exception in my applet

There is a special function for exception handling in class "ISOException": public static void throwIt(short sw) {} you could use it. Firstly, you need to import the class "ISOException" in your Applet by using the command below: "import javacard.framework.ISOException;"...
JavaCard OS : Disclaimer