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

Implement abstraction::ak #166

Merged
merged 3 commits into from
Dec 17, 2020
Merged

Implement abstraction::ak #166

merged 3 commits into from
Dec 17, 2020

Conversation

puiterwijk
Copy link
Collaborator

This adds a function to create an AK object and return it
from the template from the tss2-tools, and also a function
to load a created AK object.

Signed-off-by: Patrick Uiterwijk patrick@puiterwijk.org

Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Looks good - don't know if you want to add any docs to those public methods, but it's not mandatory.

Also, before we bump the major version number, we should look at adding some doctests and examples, even if it's just copying some of the context tests we use now.

src/abstraction/ak.rs Outdated Show resolved Hide resolved
src/abstraction/ak.rs Show resolved Hide resolved
tests/abstraction_ak_tests.rs Show resolved Hide resolved
src/abstraction/ak.rs Show resolved Hide resolved
SignatureScheme::EcDaa => TPM2_ALG_ECDAA,
SignatureScheme::EcSchnorr => TPM2_ALG_ECSCHNORR,
SignatureScheme::Sm2 => TPM2_ALG_SM2,
SignatureScheme::Rsa(ss) => ss.into(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes! This is much better. The previous(mine) was just taking any alg in the specification and putting up as enum without any closer thought behind it. This is a huge improvement,

src/abstraction/ak.rs Outdated Show resolved Hide resolved
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This adds a function to create an AK object and return it
from the template from the tss2-tools, and also a function
to load a created AK object.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This makes that we only have the different signature scheme encodings
once.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Looks good to me

src/abstraction/ak.rs Show resolved Hide resolved
@puiterwijk
Copy link
Collaborator Author

@Superhepper Do you want to re-review it?

@ionut-arm
Copy link
Member

If not, we can go ahead and merge - do you need a release after this, @puiterwijk ?

@puiterwijk
Copy link
Collaborator Author

@ionut-arm That would be great, yeah. Since this is the last thing we need for keylime-rust.

@puiterwijk
Copy link
Collaborator Author

@Superhepper gave me a "Merge it" on Slack, so doing so!

@puiterwijk puiterwijk merged commit d54a17d into parallaxsecond:master Dec 17, 2020
@puiterwijk puiterwijk deleted the aik branch December 17, 2020 13:07
tgonzalezorlandoarm pushed a commit to tgonzalezorlandoarm/rust-tss-esapi that referenced this pull request Mar 14, 2024
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.

3 participants