javacard

How do I multiply (and divide) BCD numbers by 10^x

I have a large (12 digit) BCD number, encoded in an array of 6 bytes - each nibble is one BCD digit. I need to multiply it by 10^x, where x can be positive or negative. I know it can be done by shifting left or right by nibble instead of bit, but it's a horrible implementation - especially in Javacard, which is what I'm using. Is there...

Java Card Conversion

Hi I have written a Java Card App and want to upload it to a Card. But the card supports Java 2.1.1 standard. So I am looking for a way of generating a 2.1.1 Compliant CAP file with my 2.2.2 Kit I have Java 1.6, GPShell 1.4.2, Java Card 2.2.2, JCOP 30 V2 Card ...

JavaCard random number generation speed

Hi, I'm implementing an authentication protocol using ECDSA on javacard. The funniest thing I noticed was the "secure random number genrator" takes 700ms for execution. This can be considered as percfectly number. But after I load the applet to the card for the first time this time is 150ms. ECDSA signature therefore takes 228ms for i...

Smart Card Query

Hi I need to know what kind of Java Smart Card to buy and where I can get some from? What are the factors i should consider while choosing a card / vendor? Thanks ...

Java Card Unit Testing

I'd like to run my Java Card applications in some kind of emulated/simulated environment to be able to run JUnit (or any other unit test framework) tests on them. Does anyone know of such a tool? I'd prefer some open source project. ...

Smartcard reader naming: when removing any reader, the name of the rest changes

Hello. I am writting a smartcard application. This application connects card in reader and sometimes works with it. I need to watch when reader is no longer available (either card is ejected or reader is removed from USB). Readers are watched using SCardGetStatusChangeA. This function requires reader name to watch. I insert two reade...

JavaCard monitoring folder

I want to write a two way application: applet for javacard and an application in C#. I've got the C# covered but i want to know if with JavaCard i can monitor a folder on the memory and how would i go about doing that. I have a shared folder let's call it temp in which i want to store buffer information between the simulated smartcard a...

Applet ID's and APDU in Java Card

Hi all, In my project i want to write biometric data (like fingerprint template) on a smart card. After some good study i chose Java card for my project. But i am new to this platform and know very little about this :( I have read tutorials from Sun also, but was unable to resolve some confusions: 1.) I just want to read and write bio...

Why Java Card 2.x (now Classic Edition) doesn't have a Map implementation?

Sure the JSE HashMap has an "expensive" hashing function and its variable size could potentially cause out of memory errors but what about a constant size Map with a simple hashing relative to its constant size? ...

apduToolTask cannot be found

Hi all, i am new to java card platform and presently i am using java card classic edition v 3.0.1 and when i am using Apache ANT command - ant all to build the build.xml file, i am getting the following error: c:\java\java_card_kit-2_2_2\samples\build.xml:17: taskdef class com.sun.javacard.ant.tasks.APDUToolTask cannot be found I've a...

getting started with java card on sim cards

Hello, I'm looking to write a simple beginner program using Java Card to run on sim cards. Can anyone point me to some very basic information on getting started? I've seen some descriptions of the toolkit api, but I'm looking for things like: what capabilities are supported by the sim card, how to upload my code to the card (do i need...

Reading data from a Smart Card (preferably with Java)

I would like to be able to read a few bytes of unencrypted data which is stored in a smart card. I have the reader and know that the Sun version of Java 6 includes javax.smartcardio and I have read a bit about these APIs. Having never worked with smart cards before I wonder if there is a simple way to read bytes of date in a given secto...

Webapps and Smart Card Interaction

A few weeks ago, I tried to ask a similar question, but phrased it incorrectly, so I'm trying again. I still don't think what I want is possible, but I'm asking anyhow. Given a web application running on a "remote" server (i.e. can be anywhere in the world), can that webapp communicate with applets on a Java Card connected to a user's w...

SIM Application ToolKit

I require to develop a SIM Applocation which is capable for Cell ID for the underlying cell to my server. I wanted to enquire whether this possible. If possible can what kind of simulator can we use for this purpose and Code snippets for the same. ...

are sim cards supporting javacard avalaible? where can i get it?

are sim cards supporting javacard avalaible? where can i get it? ...

Java Card: Problems selecting app with APDUtool

I'm new to Java Card programming and I'm having some problems getting started. I'm using Eclipse with EclipseJCDE. I made a simple java card applet and used EclipseJCDE's tools to create a .cap file and install it on the simulator. I don't know if installing it on the simulator was successful or not because the download script is a bunch...

Problem with javacard WebApplication

Hi, I'm trying to build a javacard webapplication with netbeans, but I'm getting a build error and don't know how to fix it: [Error] Unable to parse the class file webapplication2/WebApplication2.class. Exception while looking for class webapplication2.WebApplication2: java.io.IOException: Couldnt find: webapplication2/WebApplicati...