MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / GenerateSigningKeyPair

Method GenerateSigningKeyPair

src/common/keypair.cpp:695–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695void CCrypto::GenerateSigningKeyPair( CECSigningPublicKey *pPublicKey, CECSigningPrivateKey *pPrivateKey )
696{
697 uint8 rgubSecretData[32];
698 GenerateRandomBlock( rgubSecretData, 32 );
699 VerifyFatal( pPrivateKey->SetRawDataAndWipeInput( rgubSecretData, 32 ) );
700 if ( pPublicKey )
701 {
702 VerifyFatal( pPrivateKey->GetPublicKey( pPublicKey ) );
703 }
704}

Callers

nothing calls this directly

Calls 2

GetPublicKeyMethod · 0.80

Tested by

no test coverage detected