channels/smartcard: harden parsing of expected padding