Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Make SHA256 algorithm creation FIPS compliant. #145

Merged
merged 1 commit into from
Jun 8, 2017
Merged

Conversation

NTaylorMullen
Copy link
Contributor

  • Tested this on a Windows 8.1 FIPS compliant machine with a net461 targeted application with/without my fix.

#144


namespace Microsoft.AspNetCore.Antiforgery.Internal
{
public static class CryptographyAlgorithms
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looked like we haven't jumped on the train of just making these things actually internal so I left this public for consistency.


try
{
sha256 = SHA256.Create();
Copy link
Contributor

Choose a reason for hiding this comment

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

Just return from here? Shouldn't need the variable.

return sha256;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

New line at EOF

@NTaylorMullen NTaylorMullen merged commit bdf115a into dev Jun 8, 2017
@NTaylorMullen NTaylorMullen deleted the nimullen/144 branch June 8, 2017 17:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants