Skip to content

Commit

Permalink
Merge #3774 Fix FIPS-mode exceptions on Windows for SHA256
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Feb 17, 2023
2 parents 98f2836 + 00ad90f commit 1205b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
- [GUI] Fix GUI freeze with non-empty changeset at startup (#3708 by: HebaruSan; reviewed: techman83)
- [GUI] Use changeset tab for reinstall (#3726, #3728, #3739 by: HebaruSan; reviewed: techman83)
- [Core] Fix handling of empty builds.json file (#3733 by: HebaruSan; reviewed: DasSkelett)
- [Core] Fix FIPS-mode exceptions on Windows for SHA256 (#3774 by: HebaruSan; reviewed: techman83)

### Internal

Expand Down
2 changes: 1 addition & 1 deletion Core/Net/NetFileCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ public string GetFileHashSha1(string filePath, IProgress<long> progress)
/// SHA256 hash, in all-caps hexadecimal format
/// </returns>
public string GetFileHashSha256(string filePath, IProgress<long> progress)
=> GetFileHash<SHA256Managed>(filePath, "sha256", sha256Cache, progress);
=> GetFileHash<SHA256CryptoServiceProvider>(filePath, "sha256", sha256Cache, progress);

/// <summary>
/// Calculate the hash of a file
Expand Down

0 comments on commit 1205b95

Please sign in to comment.