Max
2004-06-03 06:25:30 UTC
Is it possible to open a PKCS#11 session to a smart card from within a
smart card CSP without causing problems?
I am working with a legacy smart card CSP that under certain
situations delegates to a PKCS#11 module to retrieve/store data
previously cached in the public sector of a smart card. Apparently,
even reading from the card using PKCS#11 prevents CryptoAPI from
working properly. For example, I noticed that signing fails if I
delegate to the PKCS#11 module. If I comment out the lines of code
that delegates to the PKCS#11 module and hard-code the data that it
would return from the card, signing works fine.
Any ideas? Thanks!
smart card CSP without causing problems?
I am working with a legacy smart card CSP that under certain
situations delegates to a PKCS#11 module to retrieve/store data
previously cached in the public sector of a smart card. Apparently,
even reading from the card using PKCS#11 prevents CryptoAPI from
working properly. For example, I noticed that signing fails if I
delegate to the PKCS#11 module. If I comment out the lines of code
that delegates to the PKCS#11 module and hard-code the data that it
would return from the card, signing works fine.
Any ideas? Thanks!