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

Load X,Y public key into TPM with correct padding #282

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

jhand2
Copy link
Collaborator

@jhand2 jhand2 commented Dec 9, 2023

big.Int.Bytes() will trim any leading zeros. But when passed to the TPM, the X,Y coordinates of an ECC point have to be properly left-padded to the ECC int size for that curve.

Ensure the integer is padded properly.

@jhand2 jhand2 requested a review from sree-revoori1 December 9, 2023 01:12
sree-revoori1
sree-revoori1 previously approved these changes Dec 9, 2023
big.Int.Bytes() will trim any leading zeros. But when passed to the TPM,
the X,Y coordinates of an ECC point have to be properly left-padded to
the ECC int size for that curve.

Ensure the integer is padded properly.
@jhand2 jhand2 merged commit 674a175 into chipsalliance:main Dec 9, 2023
1 check 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