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

Fixed crypto API exceptions and bypassed FIPS enforcement #37

Merged
merged 6 commits into from
Feb 24, 2024

Conversation

subat0mik
Copy link
Contributor

This PR fixes #28 and #33.

PR #29 broke some crypto functionality by using the *CryptoServiceProvider APIs.

The initial exception reported in #33 shows that an IV is expected because the overloaded function was expected. Explicitly passing the IV resolved that exception. After further testing, despite the *Managed and *CryptoServiceProvider APIs supposedly being interchangeable, something is breaking internally, which I could not resolve.

The reason for this change, as mentioned in PR #29, was to use FIPS-compliant algorithms on hosts that enforce FIPS. The *CryptoServiceProvider APIs are "somewhat" FIPS-compliant so, in theory, this is could work. However, these APIs broke functionality.

The other option is to disable the enforcement of FIPS in the application's config file: app.config.

This PR revers back to the *Managed APIs and disables enforcement of FIPS.

@HarmJ0y HarmJ0y merged commit 7eecafe into GhostPack:master Feb 24, 2024
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.

Execution fails if FIPS algorithms are enforced
2 participants