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

Method GenerateKeyPair

extra/yassl/taocrypt/src/dh.cpp:47–51  ·  view source on GitHub ↗

Generate a DH Key Pair

Source from the content-addressed store, hash-verified

45
46// Generate a DH Key Pair
47void DH::GenerateKeyPair(RandomNumberGenerator& rng, byte* priv, byte* pub)
48{
49 GeneratePrivate(rng, priv);
50 GeneratePublic(priv, pub);
51}
52
53
54// Generate private value

Callers 4

bench_dhFunction · 0.80
dh_testFunction · 0.80
DiffieHellmanMethod · 0.80
crypto_wrapper.cppFile · 0.80

Calls

no outgoing calls

Tested by 1

dh_testFunction · 0.64