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

Method get_parms

extra/yassl/src/crypto_wrapper.cpp:888–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886
887
888void DiffieHellman::get_parms(byte* bp, byte* bg, byte* bpub) const
889{
890 using TaoCrypt::Integer;
891 Integer p = pimpl_->dh_.GetP();
892 Integer g = pimpl_->dh_.GetG();
893
894 p.Encode(bp, p.ByteCount());
895 g.Encode(bg, g.ByteCount());
896 memcpy(bpub, pimpl_->publicKey_, pimpl_->dh_.GetByteLength());
897}
898
899
900// convert PEM file to DER x509 type

Callers 15

buildClientHelloFunction · 0.80
buildServerHelloFunction · 0.80
sanity_check_messageFunction · 0.80
cipherFinishedFunction · 0.80
buildMessageFunction · 0.80
buildAlertFunction · 0.80
TLS_hmacFunction · 0.80
DoProcessReplyFunction · 0.80
sendChangeCipherFunction · 0.80
createKeyMethod · 0.80
buildMethod · 0.80
readMethod · 0.80

Calls 2

EncodeMethod · 0.80
GetByteLengthMethod · 0.80

Tested by

no test coverage detected