Hello,

I just released a program to be used with the Cyberflex Access card (and
Cryptoflex 8K card if someone can figure out how to order the key binary on
the card - the code is included)

This program allows you to encrypt files on your Unix machine using your
smartcard.  It works like this:

./cscrypt src dest

The src is the file to encrypt.  It will create an IDEA 128 bit key and
encrypt the file with it in 16 byte blocks.  Then it will create a new file
dest with the following format:

[cipher type] [file size] [key size] [encrypted IDEA key] [RFU] [cipher text]
[possibly hash checksum in the future]

The IDEA key is encrypted with your RSA public key that is created when you
do a csgenkey which is the same program used in the PAM module.

To decrypt the file you will need your smartcard and it will read the
header information off the file - decrypt the IDEA key and decrypt the file
with
./csdecrypt src dest

The code doesn't check for many errors but I wanted to get it out for
people to play with.  You should be able to use this code with many of the
readers supported by PC/SC but like Jim Rees mentioned in previous posts
you have to change the atr on the access card so that it has an acceptable
WWT.  I have tested it with the Reflex 62 reader and Todos.

Best Regards,
Dave

David Corcoran                                  Purdue University
1008 Cherry Lane                                Center for Education
West Lafayette, IN 47906                        and Research in Information
[EMAIL PROTECTED]                          Assurance and Security.
765 - 427 - 5147                                http://www.linuxnet.com


***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to