PC/SC smartcard stack