try to simply remove type/size-consistency checks; refs #169

master
Marc Wäckerlin 11 years ago
parent c384dba71e
commit f3720d6392
  1. 4
      src/smartcardauth.hxx

@ -121,8 +121,8 @@ class CryptokiEngine: public QObject, public openssl::Engine {
virtual std::string rsaSign(const std::string& in, unsigned int type) {
TRC; LOG<<"log; type="<<type<<"; size="<<in.size();
LOG<<crypto::readable(in).c_str();
if (type != NID_md5_sha1) throw std::runtime_error("wrong sign type");
if (in.size() != 36) throw std::runtime_error("wrong msg size to sign");
// if (type != NID_md5_sha1) throw std::runtime_error("wrong sign type");
// if (in.size() != 36) throw std::runtime_error("wrong msg size to sign");
LOG<<"ready to sign";
try {
return _privateKey->sign(in, CKM_RSA_PKCS);

Loading…
Cancel
Save