Information on Java Card Cryptography
2 posts in topic
Flat View  Flat View

Posted By:   Mika_Cohen
Posted On:   Thursday, November 15, 2001 04:43 AM

Hi all!

Does anybody know where I can find

information on how to use the

javacard.security package?

Re: Information on Java Card Cryptography

Posted By:   Clement_SIMON  
Posted On:   Wednesday, November 21, 2001 02:14 AM

Julien is right, this book is very good, so I recommend you run to your nearest book store and buy it.

But here's the javacard.security package in a nutshell.

The javacard.security package provides you with these functionalities :

- Key management

- Signature & verification operations

- Message digest & hashing operations

- Random number generation

To create keys, you use either the KeyBuilder.buildKey() method or the KeyPair class.

To initialize the keys, you use all the setXXX() methods (setKey, setExponent, etc...) according to the type of key you are manipulating (DES, RSA, RSA CRT or DSA), or you can use the genKeyPair() method from the KeyPair class (if supported by the platform).

To generate or verify a signature, you :

- create a Signature object with Signature.getInstance()

- initialize the Signature object in signature or verification mode with the appropriate key

- generate a signature with the update() and sign() methods

- verify a signature with the verify() method

To create a message digest (or hash) :

- create a MessageDigest object with MessageDigest.getInstance()

- generate the hash with the update and doFinal() methods

To generate random numbers, you :

- create a RandomData object with RandomData.getInstance()

- generate random bytes with the generateData() method.

This is just a general overview of the package. Feel free to ask more specific questions. :-)

Re: Information on Java Card Cryptography

Posted By:   Julien_SIMON  
Posted On:   Saturday, November 17, 2001 01:23 AM

For starters, I would recommend "Java Card Technology for Smart Cards: Architecture and Programmer's Guide" by Zhiqun Chen. If your need information on cryptography, you may want to look at one of the books mentioned in the Cryptography section of the FAQ. If you have a specific question, go ahead and I'll answer it :-)

Cheers !
About | Sitemap | Contact