TclSC - The Tcl Smart Card Extension


Overview

The TclSC Smart Card Extension enables rapid smart card application design and development using the Tcl scripting language. Using TclSC one can directly access a smart card via a PC/SC-compliant smart card service provider (SSP) and smart card reader or one can develop smart card applications using built-in smart card emulators. The TclSC extension currently consists of the following command sets:

The smart card interfaces simply surface the command sets of their respective smart cards. For example, to present a PIN to a Multiflex smart card from a Tcl script one might code

multiflex::verifyPIN {1 2 3 4}

or to sign a hash with a public key on a GPK2000 card one might code

gpk2000::publicKeySign $hash signature

Download

The TclSC package is built on top of Tcl and the Microsoft PC/SC smart card architecture. You will need to install:

THIS PACKAGE IS UNDER ACTIVE CONSTRUCTION.

THIS RELEASE IS "PRE-ALPHA" AND FOR EARLY USER FEEDBACK.

Download tclsc.zip of 5/3/98

 

Extending TclSC

To add a new emulator or smart card to the TclSC package is relatively straightforward. Tcl namespaces are used to isolate the commands from the interpreter. To get started, copy template.c to yourcardtype.c, then start editing within this file. Change the name of the templateInit routine to yourcardtype, add the commands that you need and compile the code. Use the Multiflex and GPK2000 code as examples.

Some assumptions about coding are:

 

References

 

Acknowledgements

 
Copyright © 1998 Ace Wrecking & Software All rights reserved