calling this an update is an insult
k
This commit is contained in:
parent
331c050540
commit
4b1adda2a6
2 changed files with 0 additions and 2 deletions
|
@ -18,7 +18,6 @@ namespace SockScape.Encryption {
|
||||||
private readonly byte[] IV;
|
private readonly byte[] IV;
|
||||||
|
|
||||||
public BlockCipher(BigInteger key) {
|
public BlockCipher(BigInteger key) {
|
||||||
Key = Key.Select(x => (byte)0).ToArray();
|
|
||||||
Array.Copy(key.ToByteArray(), Key, Key.Length);
|
Array.Copy(key.ToByteArray(), Key, Key.Length);
|
||||||
|
|
||||||
IV = Configuration.General["Master IV"].Str.HexStringToBytes()
|
IV = Configuration.General["Master IV"].Str.HexStringToBytes()
|
||||||
|
|
|
@ -14,7 +14,6 @@ namespace SockScape.Encryption {
|
||||||
public StreamCipher(BigInteger key) {
|
public StreamCipher(BigInteger key) {
|
||||||
int i = 0, j = 0;
|
int i = 0, j = 0;
|
||||||
State = State.Select(x => (byte)i++).ToArray();
|
State = State.Select(x => (byte)i++).ToArray();
|
||||||
Key = Key.Select(x => (byte)0).ToArray();
|
|
||||||
Array.Copy(key.ToByteArray(), Key, Key.Length);
|
Array.Copy(key.ToByteArray(), Key, Key.Length);
|
||||||
|
|
||||||
for(i = 0; i < State.Length; ++i) {
|
for(i = 0; i < State.Length; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue