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

Method RSA

extra/yassl/src/crypto_wrapper.cpp:647–654  ·  view source on GitHub ↗

Set public or private key

Source from the content-addressed store, hash-verified

645
646// Set public or private key
647RSA::RSA(const byte* key, unsigned int sz, bool publicKey)
648 : pimpl_(NEW_YS RSAImpl)
649{
650 if (publicKey)
651 pimpl_->SetPublic(key, sz);
652 else
653 pimpl_->SetPrivate(key, sz);
654}
655
656RSA::~RSA()
657{

Callers

nothing calls this directly

Calls 2

SetPublicMethod · 0.80
SetPrivateMethod · 0.80

Tested by

no test coverage detected