This is a port to freebasic of RSA PKCS#11 functions.
Should work under windows and linux (both x86 and x64)
Make sure all drivers are installed (both hardware reader driver and pkcs#11 smartcard middleware)
http://www.geniusoft.it/freebasic/PKCS11.zip