Fixed signature issue & allocation size
This commit is contained in:
parent
fd18634d32
commit
6ad088e46e
@ -119,10 +119,6 @@ namespace MLAPI.Data
|
||||
/// Wheter or not to enable scene switching
|
||||
/// </summary>
|
||||
public bool EnableSceneSwitching = false;
|
||||
/// <summary>
|
||||
/// The RSA Keysize to use
|
||||
/// </summary>
|
||||
public int RSAKeySize = 2048;
|
||||
|
||||
private byte[] ConfigHash = null;
|
||||
/// <summary>
|
||||
|
@ -1530,7 +1530,7 @@ namespace MLAPI.MonoBehaviours.Core
|
||||
{
|
||||
rsa.PersistKeyInCsp = false;
|
||||
rsa.FromXmlString(NetworkConfig.RSAPrivateKey);
|
||||
publicKeySignature = rsa.SignData(publicKeySignature, new SHA512CryptoServiceProvider());
|
||||
publicKeySignature = rsa.SignData(publicKey, new SHA512CryptoServiceProvider());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1555,7 +1555,7 @@ namespace MLAPI.MonoBehaviours.Core
|
||||
if (NetworkConfig.HandleObjectSpawning)
|
||||
{
|
||||
sizeOfStream += 4;
|
||||
sizeOfStream += 14 * amountOfObjectsToSend;
|
||||
sizeOfStream += 38 * amountOfObjectsToSend;
|
||||
}
|
||||
|
||||
if (NetworkConfig.EnableEncryption)
|
||||
|
Loading…
x
Reference in New Issue
Block a user