aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-04 00:40:19 +0800
committercrupest <crupest@outlook.com>2020-06-04 00:40:19 +0800
commit189214cae17d6255989529ff47b2d963ed4c1038 (patch)
tree5e8010143dcc151dea369dd786cf060acc0c3fe4 /Timeline/Services
parente0f80f02ff60e901a20713d906ff212700861863 (diff)
downloadtimeline-189214cae17d6255989529ff47b2d963ed4c1038.tar.gz
timeline-189214cae17d6255989529ff47b2d963ed4c1038.tar.bz2
timeline-189214cae17d6255989529ff47b2d963ed4c1038.zip
chore(back): Fix some warnings.
Diffstat (limited to 'Timeline/Services')
-rw-r--r--Timeline/Services/PasswordService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Services/PasswordService.cs b/Timeline/Services/PasswordService.cs
index e04a861b..8114a520 100644
--- a/Timeline/Services/PasswordService.cs
+++ b/Timeline/Services/PasswordService.cs
@@ -110,7 +110,7 @@ namespace Timeline.Services
return Convert.ToBase64String(HashPasswordV3(password, _rng));
}
- private byte[] HashPasswordV3(string password, RandomNumberGenerator rng)
+ private static byte[] HashPasswordV3(string password, RandomNumberGenerator rng)
{
return HashPasswordV3(password, rng,
prf: KeyDerivationPrf.HMACSHA256,
@@ -166,7 +166,7 @@ namespace Timeline.Services
};
}
- private bool VerifyHashedPasswordV3(byte[] hashedPassword, string password, string hashedPasswordString)
+ private static bool VerifyHashedPasswordV3(byte[] hashedPassword, string password, string hashedPasswordString)
{
try
{