Skip to content

Fix issue with SHA256 instantiation#9429

Merged
YuliiaKovalova merged 7 commits intodotnet:mainfrom
YuliiaKovalova:dev/ykovalova/fix_SecurityUtilities.SignFile_netcore
Nov 28, 2023
Merged

Fix issue with SHA256 instantiation#9429
YuliiaKovalova merged 7 commits intodotnet:mainfrom
YuliiaKovalova:dev/ykovalova/fix_SecurityUtilities.SignFile_netcore

Conversation

@YuliiaKovalova
Copy link
Copy Markdown
Member

@YuliiaKovalova YuliiaKovalova commented Nov 16, 2023

Fixes #9248

Context

After the change from SHA256Managed -> SHA256 the instantiation was broken. SHA256 is an abstract class.

Changes Made

Get back to SHA256Managed usage

Testing

Manual + UT for guarding the changes in signing.
Before:
image

After:
image

Copy link
Copy Markdown
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@sujitnayak if you have a minute could you take a look at this change to mansign2?

Copy link
Copy Markdown
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"I tried that and it doesn't work" is a pretty good reason to keep it as you had it :) Looks good.

@YuliiaKovalova YuliiaKovalova merged commit f7f0b19 into dotnet:main Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: SecurityUtilities.SignFile is broken in Microsoft.Build.Tasks.Core >= 17.1.0

3 participants