Skip to content

various changes to enable MS FIPS tests - #68

Merged
aricart merged 2 commits into
mainfrom
fix-67
Nov 26, 2024
Merged

various changes to enable MS FIPS tests#68
aricart merged 2 commits into
mainfrom
fix-67

Conversation

@aricart

@aricart aricart commented Nov 25, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Looks like tests failed.

@coveralls

Copy link
Copy Markdown

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

@derekcollison derekcollison left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

60e175c

@aricart

aricart commented Nov 25, 2024

Copy link
Copy Markdown
Member Author

that was the first commit - tooling on ci old

@derekcollison derekcollison left a comment

Copy link
Copy Markdown
Member

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
@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