Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable FIPS for both bootstrapping and install packages #225

Merged
merged 5 commits into from
Oct 21, 2016
Merged

Conversation

jianyunt
Copy link
Contributor

@jianyunt jianyunt commented Oct 20, 2016

Resolve Issue #195
Resolve Issue #208

Please review changes for Submodule, see this link

Found no issue on Win10 machines with FIPS enabled.
The fixes mainly for downlevel Windows OSs.
Tested: Nano, Inbox, PowerShellCore and Linux

…thout credentials

Issue# 195 FIPS issue on downlevel OSs.
@jianyunt
Copy link
Contributor Author

@bmanikm @KrishnaV-MSFT can you please CR? thx.

hashAlgorithm = SHA512.Create();
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

What about FIPS + PSCore combination on Windows? else part will cause the same issue again with FIPS + PSCore on Windows.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no issues on CoreCLR.


In reply to: 84203408 [](ancestors = 84203408)

hashAlgorithm = OSInformation.IsFipsEnabled ? (HashAlgorithm)new SHA256CryptoServiceProvider() : SHA256.Create();
#else
hashAlgorithm = SHA256.Create();
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

What about FIPS + PSCore combination on Windows? else part will cause the same issue again with FIPS + PSCore on Windows.

Copy link
Contributor Author

@jianyunt jianyunt Oct 20, 2016

Choose a reason for hiding this comment

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

No Issues on CoreClr. We can not minimize to oneline: = OSInformation.IsFipsEnabled ? (HashAlgorithm)new SHA256CryptoServiceProvider() : SHA256.Create(), because SHA256CryptoServiceProvider does not exist on CoreClr. Therefore we have to add #if CoreClr here.


In reply to: 84203432 [](ancestors = 84203432)

{
hashAlgorithm = MD5.Create();
}

Copy link
Contributor

@bmanikm bmanikm Oct 20, 2016

Choose a reason for hiding this comment

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

if possible, please add the test cases #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's not about test cases. it's the entire machine environment change. In fact, Win10... does not repro it.


In reply to: 84203632 [](ancestors = 84203632)

@bmanikm
Copy link
Contributor

bmanikm commented Oct 20, 2016

Can we also review the NuGet provider changes? are you going to send a separate PR?


In reply to: 254983784 [](ancestors = 254983784)

@bmanikm
Copy link
Contributor

bmanikm commented Oct 20, 2016

:shipit:

@jianyunt
Copy link
Contributor Author

It's in the PR notes. "Please review changes for Submodule, see this link"


In reply to: 254992803 [](ancestors = 254992803,254983784)

@jianyunt jianyunt merged commit 7e07ade into master Oct 21, 2016
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.

4 participants