Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Essentials.HashProviders.MD5/MD5HashProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace ktsu.Essentials.HashProviders.MD5;
/// registered as a singleton, concurrent callers corrupted each other's in-progress hash state.
/// </remarks>
[SuppressMessage("Security", "CA5351:Do Not Use Broken Cryptographic Algorithms", Justification = "This provider exists specifically to implement MD5, which callers select deliberately for compatibility")]
[SuppressMessage("Security", "S4790:Using weak hashing algorithms is security-sensitive", Justification = "This provider exists specifically to implement MD5, which callers select deliberately for compatibility. The algorithm is fixed by the type's contract and cannot be substituted for a stronger one")]
public class MD5HashProvider : IHashProvider
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions Essentials.HashProviders.SHA1/SHA1HashProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
/// registered as a singleton, concurrent callers corrupted each other's in-progress hash state.
/// </remarks>
[SuppressMessage("Security", "CA5350:Do Not Use Weak Cryptographic Algorithms", Justification = "This provider exists specifically to implement SHA-1, which callers select deliberately for compatibility")]
[SuppressMessage("Security", "S4790:Using weak hashing algorithms is security-sensitive", Justification = "This provider exists specifically to implement SHA-1, which callers select deliberately for compatibility. The algorithm is fixed by the type's contract and cannot be substituted for a stronger one")]
public class SHA1HashProvider : IHashProvider

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.

Check warning on line 21 in Essentials.HashProviders.SHA1/SHA1HashProvider.cs

View workflow job for this annotation

GitHub Actions / Build, Test & Release

Rename class 'SHA1HashProvider' to match pascal case naming rules, consider using 'Sha1HashProvider'.
{
/// <summary>
/// The length of the SHA-1 hash in bytes (20 bytes / 160 bits).
Expand Down