Skip to content

Commit 4151183

Browse files
TinaMorCopilot
andauthored
Add comment for removal of MD5 and SHA1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7bfcbe9 commit 4151183

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

containers-toolkit/Private/CommonToolUtilities.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public enum ActionConsent {
6767
}
6868
'@
6969

70+
# Supported hash functions for checksum validation. MD5 and SHA1 are excluded due to known
71+
# cryptographic vulnerabilities and security deprecation. Only modern, secure algorithms are used.
7072
$HASH_FUNCTIONS = @("SHA256", "SHA384", "SHA512")
7173
$HASH_FUNCTIONS_STR = $HASH_FUNCTIONS -join '|' # SHA256|SHA384|SHA512
7274
$NERDCTL_CHECKSUM_FILE_PATTERN = "(?<hashfunction>(?:^({0})))" -f ($HASH_FUNCTIONS -join '|')

0 commit comments

Comments
 (0)