MCPcopy Create free account
hub / github.com/cuberite/cuberite / PrepareKeys

Method PrepareKeys

src/Server.cpp:288–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288void cServer::PrepareKeys(void)
289{
290 LOGD("Generating protocol encryption keypair...");
291 VERIFY(m_PrivateKey.Generate(1024));
292 m_PublicKeyDER = m_PrivateKey.GetPubKeyDER();
293}
294
295
296

Callers

nothing calls this directly

Calls 2

GetPubKeyDERMethod · 0.80
GenerateMethod · 0.45

Tested by

no test coverage detected