Hi,
I am working on new smart card driver for opensc library.
Here is the description of problems I found during
implementation:
SC does not conform to PKCS#15, it does not contain
RSA/DSA ciphers at all, except Russian GOST-28147.89 standard,
but Windows drivers support keeping RSA key, X.509 on card.
My intention to implement same functional set with help of
opensc framework...
The card have some specific features derived from Windows drivers
- it has two "Map" files used to describe contents of data stored
on tokens flash.
PKCS#11 function - C_GenerateKeyPair should create also special
"container" for
the key pair in those map files, that should be implemented to keep
compatibility with windows. Here difficulties come with attempt
to create two-byte identifier and save it as additional attribute
with PKCS object.
But for the ะก_CreateObject, I have just to put only object into file.
Could you advice how to implement this effectively? because real
trouble happens when I working with Mozilla, SC does not permit
store additional identifiers bytes with keys:
sc_pkcs15_object.label,
sc_pkcs15_pubkey_info.key_reference,
sc_pkcs15_prkey_info.key_reference, sc_pkcs15_pubkey_info.usage,
sc_pkcs15_prkey_info.usage
Another critical point for me, Could you provide ideas how to
implement RSA software emulation on SC_ALGORITHM_RSA_RAW flags,
is it possible?
Also Is it possible to implement digital signature using OpenSSL
engine (not smart card) by utilizing flag SC_ALGORITHM_RSA_HASH_NONE?
Please, don't be rigorous on my questions, I know that attempt to support
such dumb card is looking strange... but ...
Thank you
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel