MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / sign

Method sign

extra/yassl/src/crypto_wrapper.cpp:599–606  ·  view source on GitHub ↗

DSS Sign message of length sz into sig

Source from the content-addressed store, hash-verified

597
598// DSS Sign message of length sz into sig
599void DSS::sign(byte* sig, const byte* sha_digest, unsigned int /* shaSz */,
600 const RandomPool& random)
601{
602 using namespace TaoCrypt;
603
604 DSA_Signer signer(pimpl_->privateKey_);
605 signer.Sign(sha_digest, sig, random.pimpl_->RNG_);
606}
607
608
609// DSS Verify message of length sz against sig, is it correct?

Callers 2

buildMethod · 0.45
BuildMethod · 0.45

Calls 2

SignMethod · 0.80
SSL_SignMethod · 0.80

Tested by

no test coverage detected