-
Notifications
You must be signed in to change notification settings - Fork 53
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 tr_serialize and tr_deserialize #461
Conversation
b8eb40e
to
3905696
Compare
9c98521
to
5dc42e9
Compare
tss-esapi/tests/integration_tests/context_tests/general_esys_tr_tests.rs
Outdated
Show resolved
Hide resolved
5dc42e9
to
48c1046
Compare
@Superhepper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patch!
a3af865
to
3122e78
Compare
cacf52e
to
ecb9624
Compare
@ionut-arm @Superhepper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you for your hard work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks good 👍 I found only very minor things.
tss-esapi/tests/integration_tests/context_tests/general_esys_tr_tests.rs
Outdated
Show resolved
Hide resolved
Signed-off-by: Simon Brand <simon.brand@postadigitale.de>
ecb9624
to
3386cb2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for the effort!
I don't know if the implementation with
buffer.len().try_into().map_err
andstd::slice::from_raw_parts
is the cleanest solution. Please let me know if you have ideas for cleaner solutions.Regarding the tests, the
new_handle = old_handle + 1
, but I think checking the public part (which includes the public key) is the most relevant test for it.Edit:
The test with the new context is needed. Currently it works with the old context, but not with a new one.