From 4b1adda2a6f8661f9c1b00cce369c3620ec0606c Mon Sep 17 00:00:00 2001 From: Malloc of Kuzkycyziklistan Date: Mon, 11 Sep 2017 00:44:46 -0500 Subject: [PATCH] calling this an update is an insult k --- server/Encryption/BlockCipher.cs | 1 - server/Encryption/StreamCipher.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/server/Encryption/BlockCipher.cs b/server/Encryption/BlockCipher.cs index b989919..e33dad7 100644 --- a/server/Encryption/BlockCipher.cs +++ b/server/Encryption/BlockCipher.cs @@ -18,7 +18,6 @@ namespace SockScape.Encryption { private readonly byte[] IV; public BlockCipher(BigInteger key) { - Key = Key.Select(x => (byte)0).ToArray(); Array.Copy(key.ToByteArray(), Key, Key.Length); IV = Configuration.General["Master IV"].Str.HexStringToBytes() diff --git a/server/Encryption/StreamCipher.cs b/server/Encryption/StreamCipher.cs index 8c6a0c2..2b4928e 100644 --- a/server/Encryption/StreamCipher.cs +++ b/server/Encryption/StreamCipher.cs @@ -14,7 +14,6 @@ namespace SockScape.Encryption { public StreamCipher(BigInteger key) { int i = 0, j = 0; State = State.Select(x => (byte)i++).ToArray(); - Key = Key.Select(x => (byte)0).ToArray(); Array.Copy(key.ToByteArray(), Key, Key.Length); for(i = 0; i < State.Length; ++i) {