Search found 28 matches

by btwtiger
Sun Jan 03, 2016 11:36 pm
Forum: Algorithm School
Topic: How to implement ElGamal key generation algorithm on javacard
Replies: 1
Views: 876

Re: How to implement ElGamal key generation algorithm on javacard

The computations of ElGamal are very similar to RSA.
You can generate some large primes (as components of CRT private key) and do some modular arithmetic.
In addition, manual implementation will probably be slow.
by btwtiger
Thu Dec 31, 2015 1:13 am
Forum: Card Products
Topic: Get 0x6A86 when selecting MF
Replies: 1
Views: 1370

Re: Get 0x6A86 when selecting MF

IMO, your card is ISO 7816 compliant. And the selection method depends on vendor, you can directly ask your vendor about supported selection methods. or check ATR to know which methods are supported.
by btwtiger
Wed Dec 30, 2015 11:53 pm
Forum: Algorithm School
Topic: Store AESKey in javacard
Replies: 2
Views: 807

Re: Store AESKey in javacard

You should be familiar with key derivation.
You can derive the key using the terminal ID and store the result in a transient array and then set the value of a transient key to that value. Of course you would need to delete the derived key immediately.
by btwtiger
Fri Dec 25, 2015 4:15 am
Forum: Questions & Answers
Topic: Is it possible to store Date info in java card
Replies: 1
Views: 518

Is it possible to store Date info in java card

In my application, I need to store Date/Time info in java card. I know JavaCard 3.0 support Class Date, but the platform I am using is JC 2.2.2
Is there any similar class that can be used in JC2.2.2? Is it possible to store date info in JC2.2.2?
by btwtiger
Sun Dec 20, 2015 11:12 pm
Forum: Questions & Answers
Topic: How to run a script file on the javacard
Replies: 2
Views: 915

Re: How to run a script file on the javacard

Many smart card tools can meet your needs. The tool I use to execute the .scr file on javacard is pyApduTool.
Select the scr file first and click Play button to execute it.

execute_scr_file.png
by btwtiger
Sun Dec 20, 2015 10:59 pm
Forum: Questions & Answers
Topic: Failed to connect R502 in JCIDE
Replies: 1
Views: 706

Re: Failed to connect R502 in JCIDE

You can set the communication protocol to "T=0|T=1" and then try to connect the reader again.
by btwtiger
Wed Dec 02, 2015 8:15 am
Forum: Card Products
Topic: What's the primary difference between OP_READY and SECURED?
Replies: 1
Views: 634

Re: What's the primary difference between OP_READY and SECURED?

In my opinion, OP_READY is the very initial state of a card. In this state the card is ready to be personalized (e.g. add SSD, add keys to the security domain). Moreover, any pre-loaded executable load files will be registered in the GP registry (i.e. visible if you list applications/executable load...
by btwtiger
Tue Dec 01, 2015 1:22 am
Forum: Algorithm School
Topic: My applet returns 16 bytes of 0 instead of AES encrypted value,why?
Replies: 1
Views: 599

Re: My applet returns 16 bytes of 0 instead of AES encrypted value,why?

Hi bro.
please send encryption APDU first.
80 04 00 00 10 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF

Then try to read array by 80 C0 00 00
by btwtiger
Tue Dec 01, 2015 1:16 am
Forum: Communication
Topic: how to send apdu command to my function
Replies: 1
Views: 1247

Re: how to send apdu command to my function

Code: Select all

int CLA = 0x00;
int INS = 0x80;
int P1  = 0x00;
int P2  = 0x00;
//int LC  = 0x02;
byte[] data = new byte[] {(byte) 0x1E, (byte) 0x06};
int Le  = 0x0F;

ResponseAPDU respApdu = channel.transmit( new CommandAPDU(CLA, INS, P1, P2, data, Le));
by btwtiger
Thu Nov 19, 2015 8:16 am
Forum: Algorithm School
Topic: how to make a signature with java card and verify it
Replies: 1
Views: 1147

how to make a signature with java card and verify it

I encountered a problem when handling the signature generation and verification. Hope s.b. give me any advice. SignatureMessageRecovery sig; ... private Cardlet(byte[] bArray, short bOffset, byte bLength) { /* Generate our RSA key */ keyPair = new KeyPair(KeyPair.ALG_RSA, (short) 512); keyPair.genKe...
JavaCard OS : Disclaimer