~ruther/NosSmooth

df935e1e2009a82faceb34d724356203459ef4ae — Rutherther 2 years ago b91870a
fix(crypto): export session number correctly from encryption key
1 files changed, 2 insertions(+), 2 deletions(-)

M Core/NosSmooth.Cryptography/ClientWorldCryptography.cs
M Core/NosSmooth.Cryptography/ClientWorldCryptography.cs => Core/NosSmooth.Cryptography/ClientWorldCryptography.cs +2 -2
@@ 274,7 274,7 @@ public class ClientWorldCryptography : ICryptography

            byte sessionKey = (byte)(EncryptionKey & 0xFF);

            if (EncryptionKey != 0)
            if (EncryptionKey == 0)
            {
                sessionNumber = -1;
            }


@@ 325,4 325,4 @@ public class ClientWorldCryptography : ICryptography
            return Array.Empty<byte>();
        }
    }
}
\ No newline at end of file
}

Do not follow this link