Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Search found 34 matches

by kosullivan
Thu Aug 17, 2017 11:52 am
Forum: Questions & Answers
Topic: Transient reference to a byte array
Replies: 2
Views: 7754

Re: Transient reference to a byte array

Hi, apologies for not replying to this for so long. This is exactly what I was after, thanks :)
by kosullivan
Wed Jul 05, 2017 12:38 pm
Forum: Questions & Answers
Topic: Transient reference to a byte array
Replies: 2
Views: 7754

Transient reference to a byte array

Hi folks, I'm trying to write a data parsing class in Javacard and I want to store a transient pointer to the data buffer inside the class instance, so I don't have to keep passing the array, offset and length every call. An example of how it would be used is: DataParser parser = new DataParser(); /...
by kosullivan
Thu Apr 06, 2017 10:37 pm
Forum: Questions & Answers
Topic: Implement CMAC with AES-128 MAC algorithms
Replies: 7
Views: 22876

Re: Implement CMAC with AES-128 MAC algorithms

Here's a simple implementation of the process() method to demonstrate generating a CMAC and returning it in the APDU response. You will need to also add/compile the AESCMAC128 class I previously referenced to your project first. If you're having difficulty with this then I think the best thing is to...
by kosullivan
Thu Apr 06, 2017 2:47 am
Forum: Questions & Answers
Topic: AES-CBC mode with padding
Replies: 4
Views: 9363

Re: AES-CBC mode with padding

Just saw you were already using ALG_AES_CBC_ISO9797_M2 (I don't have access to this as I need to maintain Javacard 2.2.2 compatibility). The padding should be automatically added and removed and the return value of doFinal should give you the # of bytes of plaintext during decryption.
by kosullivan
Thu Apr 06, 2017 2:45 am
Forum: Questions & Answers
Topic: AES-CBC mode with padding
Replies: 4
Views: 9363

Re: AES-CBC mode with padding

The padding you're referring to is ISO 9797 Padding Method 2. It is mandatory when encrypting data that the padding byte 0x80 is added, followed by as many 0x00's as required to pad to the next block multiple. This is important, because it means that even if your data is already block-aligned, you _...
by kosullivan
Wed Apr 05, 2017 10:11 pm
Forum: Questions & Answers
Topic: Implement CMAC with AES-128 MAC algorithms
Replies: 7
Views: 22876

Re: Implement CMAC with AES-128 MAC algorithms

I've recently had to implement AES-CMAC-128 for Javacard 2.2.2. I've pasted the class implementation here: m It extends Signature as usual. I've put a commented out Test() method at the bottom that shows usage and executes against the RFC test vectors. This is pre-release so please let me know if yo...
by kosullivan
Thu Mar 23, 2017 7:26 am
Forum: Questions & Answers
Topic: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
Replies: 7
Views: 11345

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Fixed! Thank you so much for the incredibly quick response :)
This really is an amazing tool and such fantastic support!
by kosullivan
Thu Mar 23, 2017 2:03 am
Forum: Questions & Answers
Topic: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
Replies: 7
Views: 11345

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Registration issue is solved thanks. Back to the topic issue, I have confirmed that the issue is still happening in the latest version (v1.0.5.39, which in JCIDE reports as 2.0.1.70). If I switch the private key to TYPE_RSA_PRIVATE the code works perfectly. So it's specifically related to TYPE_RSA_C...
by kosullivan
Wed Mar 22, 2017 10:28 am
Forum: Questions & Answers
Topic: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
Replies: 7
Views: 11345

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

I just downloaded the newest version to confirm and now it is not letting me register/logon! I've put in my username/password (same one that works on the forum) and it says 'login error!'. I've confirmed there is no firewall of any kind set up and all other internet access works. I've also attempted...
by kosullivan
Wed Mar 22, 2017 2:45 am
Forum: Questions & Answers
Topic: Creating a derived RSAPublicKey
Replies: 5
Views: 9773

Re: Creating a derived RSAPublicKey

Yes I saw this. I think what it really comes to is that this is Javacard, not Java. The underlying types are hidden (probably for good security reasons) and so it just can't be done. Thanks for looking further.
JavaCard OS : Disclaimer