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

Overhaul the notion of a bespoke FIPS-140 mode #44

Open
wants to merge 1 commit into
base: go-1.24
Choose a base branch
from

Conversation

atheriel
Copy link
Collaborator

@atheriel atheriel commented Feb 25, 2025

This commit adopts Go 1.24's native fips140.Enabled() support to make runtime algorithm choices and formally deprecates its own FIPSMode.

In the process the module also gets significantly less complex: we no longer use build tags and conditional compilation to identify FIPS builds, and several internal APIs no longer return errors as a result.

The --version flag now also reports whether FIPS mode is enabled.

And we now build special rskey-fips binaries and Linux packages against the Go Cryptographic Module, too.

Additonal unit tests are included. We also specifically test the code against the Go Cryptographic Module to ensure compliance.

Closes #2.

This commit adopts Go 1.24's native `fips140.Enabled()` support to make
runtime algorithm choices and formally deprecates its own `FIPSMode`.

In the process the module also gets significantly less complex: we no
longer use build tags and conditional compilation to identify FIPS
builds, and several internal APIs no longer return errors as a result.

The `--version` flag now also reports whether FIPS mode is enabled.

And we now build special `rskey-fips` binaries and Linux packages
against the Go Cryptographic Module, too.

Additonal unit tests are included. We also specifically test the code
against the Go Cryptographic Module to ensure compliance.
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.

1 participant