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

Improve crypto & constants #381

Merged
merged 3 commits into from
Dec 16, 2024
Merged

Improve crypto & constants #381

merged 3 commits into from
Dec 16, 2024

Conversation

AlexandreEXFO
Copy link
Contributor

No description provided.

@AlexandreEXFO AlexandreEXFO requested review from alexmwu, jkl73 and a team as code owners December 16, 2024 17:27
Copy link
Member

@chrisfenner chrisfenner left a comment

Choose a reason for hiding this comment

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

Thanks for this work! I have just one nit to pick about naming, then we can merge. I am also working on some testing for this code that uses TPM2_Duplicate to check that we get valid/compatible private and public keys out of this code. I'll integrate my changes atop yours.

TPMECCBNP256 TPMECCCurve = 0x0010
TPMECCBNP638 TPMECCCurve = 0x0011
TPMECCSM2P256 TPMECCCurve = 0x0020
TPMECCBrainpool_P256_R1 TPMECCCurve = 0x0030
Copy link
Member

Choose a reason for hiding this comment

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

nit: Current style is to omit underscores from the names (even though that can lead to initialisms being next to each other) in accordance with Google's general Go style guide

@chrisfenner chrisfenner merged commit 644dc32 into google:main Dec 16, 2024
4 checks passed
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.

2 participants