Skip to content

Commit 6d5a6df

Browse files
committed
Removed old encryption buffer
1 parent 78a8a08 commit 6d5a6df

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

MLAPI/Data/NetworkConfig.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ public class NetworkConfig
6868
/// </summary>
6969
public int MessageBufferSize = 1024;
7070
/// <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-
public int EncryptionBufferSize = 265;
78-
/// <summary>
7971
/// Amount of times per second the receive queue is emptied and all messages inside are processed.
8072
/// </summary>
8173
public int ReceiveTickrate = 64;
@@ -213,7 +205,6 @@ public string ToBase64()
213205
}
214206

215207
writer.WriteInt32Packed(config.MessageBufferSize);
216-
writer.WriteInt32Packed(config.EncryptionBufferSize);
217208
writer.WriteInt32Packed(config.ReceiveTickrate);
218209
writer.WriteInt32Packed(config.MaxReceiveEventsPerTickRate);
219210
writer.WriteInt32Packed(config.SendTickrate);
@@ -294,7 +285,6 @@ public void FromBase64(string base64, bool createDummyObject = false)
294285
}
295286

296287
config.MessageBufferSize = reader.ReadInt32Packed();
297-
config.EncryptionBufferSize = reader.ReadInt32Packed();
298288
config.ReceiveTickrate = reader.ReadInt32Packed();
299289
config.MaxReceiveEventsPerTickRate = reader.ReadInt32Packed();
300290
config.SendTickrate = reader.ReadInt32Packed();

MLAPI/MonoBehaviours/Core/NetworkingManager.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ internal set
102102
/// </summary>
103103
public bool isListening { get; internal set; }
104104
private byte[] messageBuffer;
105-
private byte[] encryptionBuffer;
106105
/// <summary>
107106
/// Gets if we are connected as a client
108107
/// </summary>
@@ -254,7 +253,6 @@ private object Init(bool server)
254253
ConnectedClients.Clear();
255254
ConnectedClientsList.Clear();
256255
messageBuffer = new byte[NetworkConfig.MessageBufferSize];
257-
encryptionBuffer = new byte[NetworkConfig.EncryptionBufferSize];
258256

259257
MessageManager.channels.Clear();
260258
MessageManager.reverseChannels.Clear();

0 commit comments

Comments
 (0)