MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / Generate

Method Generate

src/openrct2/network/NetworkKey.cpp:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 bool Key::Generate()
33 {
34 try
35 {
36 _key = Crypt::CreateRSAKey();
37 _key->Generate();
38 return true;
39 }
40 catch (const std::exception& e)
41 {
42 LOG_ERROR("Network::Key::Generate failed: %s", e.what());
43 return false;
44 }
45 }
46
47 bool Key::LoadPrivate(IStream* stream)
48 {

Callers 2

TEST_FFunction · 0.45
BeginClientMethod · 0.45

Calls 2

CreateRSAKeyFunction · 0.50
whatMethod · 0.45

Tested by 1

TEST_FFunction · 0.36