additional feature: built in library name; plus: closes #70
This commit is contained in:
@@ -113,6 +113,7 @@ class CryptokiEngine: public QObject, public openssl::Engine {
|
||||
|
||||
virtual std::string rsaSign(const std::string& in, unsigned int type) {
|
||||
OPENSSL_LOG("log; type="<<type<<"; size="<<in.size());
|
||||
OPENSSL_LOG(crypto::readable(in));
|
||||
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");
|
||||
OPENSSL_LOG("ready to sign");
|
||||
|
Reference in New Issue
Block a user