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

various changes to enable MS FIPS tests #68

Merged
merged 2 commits into from
Nov 26, 2024
Merged

various changes to enable MS FIPS tests #68

merged 2 commits into from
Nov 26, 2024

Conversation

aricart
Copy link
Member

@aricart aricart commented Nov 25, 2024

change: from "golang.org/x/crypto/ed25519" to "crypto/ed25519"

change: when creating private key is to NOT provide a rand.Reader, and allow ed25519.GenerateKey() decide what reader to use, this enables and fixes #67

Other changes suggested by #67 change the structure of the library in more aggressive ways - currently, the private key is encoded into its NATS seed format in kp. Storing the private key, and prefix instead to enable extracting and formatting the seed, etc, means that all the size and format checks would have to cascade to various APIs.

change: when creating private key is to NOT provide a rand.Reader, and allow ed25519.GenerateKey() decide what reader to use, this enables and fixes #67
@derekcollison
Copy link
Member

Looks like tests failed.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12020805601

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 80.347%

Totals Coverage Status
Change from base Build 7350284314: 0.2%
Covered Lines: 417
Relevant Lines: 519

💛 - Coveralls

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

Still have check failures below.

@derekcollison
Copy link
Member

60e175c

@aricart
Copy link
Member Author

aricart commented Nov 25, 2024

that was the first commit - tooling on ci old

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@aricart aricart merged commit e05ee33 into main Nov 26, 2024
6 checks passed
@aricart aricart deleted the fix-67 branch November 26, 2024 15:08
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.

Compatibility with go-msft-fips toolchain
3 participants