Support for mode 1002 - HSM and smartcards