Smartcard engine to handle smart card input read