removed unused reference to sm_iasecc_rsa_generate
don't expect the card to specify the file length in generic tools

if sc_file_t.size == 0 we try to read 1024 bytes by default.
verifying the pin is a valid action
Use reader pin pad if available and allowed
Set output buffer len variable if padding removed.
added getpass implementation for non windows

modifies terminal attributes to emulate _getch
don't require ushort to be present
fixed initialization of structure