You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The size of the receive message buffer. This is the max message size.
67
+
/// The size of the receive message buffer. This is the max message size including any MLAPI overheads.
67
68
/// </summary>
68
69
publicintMessageBufferSize=1024;
69
70
/// <summary>
71
+
/// The size of the encryption buffer, this is the buffer where messages will be decrypted to.
72
+
/// If you plan on encrypting everything and you are pushing limits wth the MessageBufferSize already.
73
+
/// Note that Encryption might add a few extra bytes of padding and 16 bytes for the IV, if authentication is also enabled
74
+
/// 32 extra bytes will be used for the SHA256 hash of the HMAC.
75
+
/// Note that authentication without encryption will not use this buffer at all.
76
+
/// </summary>
77
+
publicintEncryptionBufferSize=265;
78
+
/// <summary>
70
79
/// Amount of times per second the receive queue is emptied and all messages inside are processed.
71
80
/// </summary>
72
81
publicintReceiveTickrate=64;
@@ -116,24 +125,6 @@ public class NetworkConfig
116
125
/// </summary>
117
126
publicboolHandleObjectSpawning=true;
118
127
/// <summary>
119
-
/// Wheter or not to enable encryption
120
-
/// </summary>
121
-
publicboolEnableEncryption=false;
122
-
/// <summary>
123
-
/// Wheter or not to enable signed diffie hellman key exchange.
124
-
/// </summary>
125
-
publicboolSignKeyExchange=false;
126
-
/// <summary>
127
-
/// Private RSA XML key to use for signing key exchange
128
-
/// </summary>
129
-
[TextArea]
130
-
publicstringRSAPrivateKey="<RSAKeyValue><Modulus>vBEvOQki/EftWOgwh4G8/nFRvcDJLylc8P7Dhz5m/hpkkNtAMzizNKYUrGbs7sYWlEuMYBOWrzkIDGOMoOsYc9uCi+8EcmNoHDlIhK5yNfZUexYBF551VbvZ625LSBR7kmBxkyo4IPuA09fYCHeUFm3prt4h6aTD0Hjc7ZsJHUU=</Modulus><Exponent>EQ==</Exponent><P>ydgcrq5qLJOdDQibD3m9+o3/dkKoFeCC110dnMgdpEteCruyBdL0zjGKKvjjgy3XTSSp43EN591NiXaBp0JtDw==</P><Q>7obHrUnUCsSHUsIJ7+JOrupcGrQ0XaYcQ+Uwb2v7d2YUzwZ46U4gI9snfD2J0tc3DGEh3v3G0Q8q7bxEe3H4aw==</Q><DP>L34k3c6vkgSdbHp+1nb/hj+HZx6+I0PijQbZyolwYuSOmR0a1DGjA1bzVWe9D86NAxevgM9OkOjG8yrxVIgZqQ==</DP><DQ>OB+2gyBuIKa2bdNNodrlVlVC2RtXnZB/HwjAGjeGdnJfP8VJoE6eJo3rLEq3BG7fxq1xYaUfuLhGVg4uOyngGQ==</DQ><InverseQ>o97PimYu58qH5eFmySRCIsyhBr/tK2GM17Zd9QQPJZRSorrhIJn1m6gwQ/G5aJLIM/3Yl04CoyqmQGsPXMzW2w==</InverseQ><D>CxAR1i22w4vCquB7U0Pd8Nl9R2Wxez6rHTwpnoszPB+rkAzlqKj7e5FMgpykhoQfciKPyWqQZKkAeTMIRbN56JinvpAt5POId/28HDd5xjGymHE81k3RzoHqzQXFIOF1TSYKUWzjPPF/TU4nn7auD4i6lOODATsMqtLr5DRBN/0=</D></RSAKeyValue>";//CHANGE THESE FOR PRODUCTION!
131
-
/// <summary>
132
-
/// Public RSA XML key to use for signing key exchange
133
-
/// </summary>
134
-
[TextArea]
135
-
publicstringRSAPublicKey="<RSAKeyValue><Modulus>vBEvOQki/EftWOgwh4G8/nFRvcDJLylc8P7Dhz5m/hpkkNtAMzizNKYUrGbs7sYWlEuMYBOWrzkIDGOMoOsYc9uCi+8EcmNoHDlIhK5yNfZUexYBF551VbvZ625LSBR7kmBxkyo4IPuA09fYCHeUFm3prt4h6aTD0Hjc7ZsJHUU=</Modulus><Exponent>EQ==</Exponent></RSAKeyValue>";//CHANGE THESE FOR PRODUCTION!
136
-
/// <summary>
137
128
/// Wheter or not to enable scene switching
138
129
/// </summary>
139
130
publicboolEnableSceneSwitching=true;
@@ -145,6 +136,40 @@ public class NetworkConfig
145
136
/// Decides how many bytes to use for Attribute messaging. Leave this to 2 bytes unless you are facing hash collisions
0 commit comments