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

Method SetPrivate

extra/yassl/src/crypto_wrapper.cpp:566–572  ·  view source on GitHub ↗

Decode and store the public key

Source from the content-addressed store, hash-verified

564
565// Decode and store the public key
566void DSS::DSSImpl::SetPrivate(const byte* key, unsigned int sz)
567{
568 TaoCrypt::Source source(key, sz);
569 privateKey_.Initialize(source);
570 publicKey_ = TaoCrypt::DSA_PublicKey(privateKey_);
571
572}
573
574
575// Set public or private key

Callers 2

DSSMethod · 0.80
RSAMethod · 0.80

Calls 3

DSA_PublicKeyClass · 0.50
RSA_PublicKeyClass · 0.50
InitializeMethod · 0.45

Tested by

no test coverage detected