Resources, Links
RSA Labs defined the Public Key Cryptography Standards (PKCS).
PKCS#11 defines an API to use software modules that give access to cryptographic token hardware.
We think PKCS#11 is not easy to use, so we use libp11, a thin layer on top of PKCS#11 API.
Pam_p11 is tested with OpenSC, but should work fine with other implementations of PKCS#11, too.
[http://www.kernel.org/pub/linux/libs/pam/ Linux-PAM (Pluggable Authentication Modules for Linux)] has the source code and documentation for PAM on linux.