aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Cryptography
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-03-07 02:41:44 -0800
committerGitHub <noreply@github.com>2019-03-07 02:41:44 -0800
commitc31b0b311b339475650aa8812eb57152cac32d80 (patch)
tree2df577b42614a5d6ae97bb1116894202bf7c0abf /Emby.Server.Implementations/Cryptography
parentbef665be364ce1477d09ed268f68c19e0099922f (diff)
Apply suggestions from code review
more minor fixes before I do larger fixes Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
Diffstat (limited to 'Emby.Server.Implementations/Cryptography')
-rw-r--r--Emby.Server.Implementations/Cryptography/CryptographyProvider.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs b/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs
index cf1ea6efa..2e882cefe 100644
--- a/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs
+++ b/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs
@@ -83,7 +83,7 @@ namespace Emby.Server.Implementations.Cryptography
{
//downgrading for now as we need this library to be dotnetstandard compliant
//with this downgrade we'll add a check to make sure we're on the downgrade method at the moment
- if(method == DefaultHashMethod)
+ if (method == DefaultHashMethod)
{
using (var r = new Rfc2898DeriveBytes(bytes, salt, iterations))
{
@@ -96,7 +96,7 @@ namespace Emby.Server.Implementations.Cryptography
public byte[] ComputeHash(string hashMethod, byte[] bytes)
{
- return ComputeHash(hashMethod, bytes, new byte[0]);
+ return ComputeHash(hashMethod, bytes, Array.Empty<byte>());
}
public byte[] ComputeHashWithDefaultMethod(byte[] bytes)
@@ -106,7 +106,7 @@ namespace Emby.Server.Implementations.Cryptography
public byte[] ComputeHash(string hashMethod, byte[] bytes, byte[] salt)
{
- if(hashMethod == DefaultHashMethod)
+ if (hashMethod == DefaultHashMethod)
{
return PBKDF2(hashMethod, bytes, salt, _defaultIterations);
}