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) {