Search found 86 matches

by BirdKing
Mon Dec 03, 2018 9:23 pm
Forum: MCU Programming
Topic: How to study STM32?
Replies: 7
Views: 10515

How to study STM32?

Hello, everyone. I want to study STM32. But a lot of material introduces the STM32. I don't know which one I should choose to see firstly. In other words, for STM32 study, what is the best learning steps?
by BirdKing
Fri Nov 23, 2018 6:15 am
Forum: Questions & Answers
Topic: My JAVACARD cannot run on the reader omikey
Replies: 6
Views: 2942

Re: My JAVACARD cannot run on the reader omikey

e... Is your PC OK? Or is your omikey reader OK? I think add a hub between pc and reader may help you to resolve the question.
by BirdKing
Wed Nov 21, 2018 5:24 am
Forum: Questions & Answers
Topic: My JAVACARD cannot run on the reader omikey
Replies: 6
Views: 2942

Re: My JAVACARD cannot run on the reader omikey

Do you have Bus Hound on your PC? I think you may post the data obtained from Bus Hound.
by BirdKing
Wed Nov 21, 2018 5:10 am
Forum: Questions & Answers
Topic: My JAVACARD cannot run on the reader omikey
Replies: 6
Views: 2942

Re: My JAVACARD cannot run on the reader omikey

What's the error you got?
by BirdKing
Sun Nov 18, 2018 10:28 pm
Forum: Questions & Answers
Topic: How to detect the frequency of a card or tag
Replies: 3
Views: 2718

Re: How to detect the frequency of a card or tag

In typeB protocol, the ATQB response command contains the bit rate supported by JavaCard.
by BirdKing
Fri Nov 16, 2018 5:36 am
Forum: Questions & Answers
Topic: What's the hash prefixes for RIPEMD160
Replies: 3
Views: 2419

Re: What's the hash prefixes for RIPEMD160

- MD5: 0x30, 0x20, 0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86, - 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05, 0x05, 0x00, - 0x04, 0x10 - - RIPEMD-160: 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x24, - 0x03, 0x02, 0x01, 0x05, 0x00, 0x04, 0x14 - - SHA-1: 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0E, - 0x03, 0x02, 0x...
by BirdKing
Wed Oct 31, 2018 2:56 am
Forum: Questions & Answers
Topic: How to set EC parameters of Keypair
Replies: 5
Views: 2907

Re: How to set EC parameters of Keypair

If you call KeyPair() as KeyPair(KeyPair.ALG_EC_FP, keyLen), the encapsulated keys are uninitialized. Then genKeyPair() will initialize the key with default paramters.
If you call KeyPair() as KeyPair(pubKey, priKey), the encapsulated keys will be initialized with the parameters of pubKey.
by BirdKing
Wed Oct 31, 2018 2:46 am
Forum: Questions & Answers
Topic: how to solve this question?
Replies: 7
Views: 3354

Re: how to solve this question?

T0 is an imperfect protocol. It claims the applet and host on pc knows how many bytes will be translated. You may add setIncomingAndReceive() and try this apdu again.
by BirdKing
Fri Oct 12, 2018 4:00 am
Forum: Questions & Answers
Topic: counter for byte array
Replies: 1
Views: 1685

Re: counter for byte array

In JavaCard applet, you can do like this: case (byte)0x02: byte temp[] = new byte[(short)20]; temp[(short)(temp.length -1)] = (byte)0x66; Util.setShort(buf, (short)0, (short)temp.length); Util.arrayCopy(temp, (short)0, buf, (short)2, (short)temp.length); apdu.setOutgoingAndSend((short)0, (short)(2 +...
by BirdKing
Fri Oct 12, 2018 3:43 am
Forum: Questions & Answers
Topic: Rsa algorithom with private key
Replies: 6
Views: 3245

Re: Rsa algorithom with private key

for 1024bits example: //create 1024bits key 00 00 00 80; // set private key 00 01 00 80 74EFE44606BB20AAFE27BE66391B982EFE381C94B77D9C4FE24A28A4411CBF882A60FD8026938B3D5CD3ABDBE6FB2241101551B228EECF85118FEB7213B6C91D34C411EDC1C3153ECC9192F112B298938FF9DEE798DB89EAAF085542B840998E933637E20E6635B495FF...
JavaCard OS : Disclaimer