try to simply remove type/size-consistency checks; refs #169
This commit is contained in:
@@ -121,8 +121,8 @@ class CryptokiEngine: public QObject, public openssl::Engine {
|
|||||||
virtual std::string rsaSign(const std::string& in, unsigned int type) {
|
virtual std::string rsaSign(const std::string& in, unsigned int type) {
|
||||||
TRC; LOG<<"log; type="<<type<<"; size="<<in.size();
|
TRC; LOG<<"log; type="<<type<<"; size="<<in.size();
|
||||||
LOG<<crypto::readable(in).c_str();
|
LOG<<crypto::readable(in).c_str();
|
||||||
if (type != NID_md5_sha1) throw std::runtime_error("wrong sign type");
|
// 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 (in.size() != 36) throw std::runtime_error("wrong msg size to sign");
|
||||||
LOG<<"ready to sign";
|
LOG<<"ready to sign";
|
||||||
try {
|
try {
|
||||||
return _privateKey->sign(in, CKM_RSA_PKCS);
|
return _privateKey->sign(in, CKM_RSA_PKCS);
|
||||||
|
Reference in New Issue
Block a user