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

Method GeneratePublic

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

Generate public value

Source from the content-addressed store, hash-verified

62
63// Generate public value
64void DH::GeneratePublic(const byte* priv, byte* pub)
65{
66 const word32 bc(p_.ByteCount());
67 Integer x(priv, bc);
68 Integer y(a_exp_b_mod_c(g_, x, p_));
69 y.Encode(pub, bc);
70}
71
72
73// Generate Agreement

Callers

nothing calls this directly

Calls 1

EncodeMethod · 0.80

Tested by

no test coverage detected