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

Adds the encrypt_decrypt_2 context method #220

Merged
merged 4 commits into from
Apr 29, 2021

Conversation

Superhepper
Copy link
Collaborator

No description provided.

Added the CBC mode to the SymmetricMode interface type.

Signed-off-by: Jesper Brynolf <jesper.brynolf@gmail.com>
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 - missing docs on the new context method, but apart from that...

@@ -237,6 +237,7 @@ impl TryFrom<TPMI_ALG_SYM> for SymmetricAlgorithm {
pub enum SymmetricMode {
Ctr,
Ofb,
Cbc,
Copy link
Member

Choose a reason for hiding this comment

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

This is definitely a breaking change - if it's in a different commit then it's alright. I'll try and think of a way to check whether the changes in a PR relate to breaking additions.

@Superhepper
Copy link
Collaborator Author

@ionut-arm Thanks for your input. Now I have to figure out what I am doing wrong in the test. I get a really wierd like unsupported key size error.

@ionut-arm
Copy link
Member

@ionut-arm Thanks for your input. Now I have to figure out what I am doing wrong in the test. I get a really wierd like unsupported key size error.

The unsupported key size is in relation to the first parameter, so TPM2B_SENSITIVE_CREATE. If you look at your initial_data (which is the initial value of the key, I think), you define it as vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 16] which isn't 16 bytes long 😀 The same applies to a few other buffers below - you need to make them 16 bytes and then it works.

@Superhepper Superhepper force-pushed the decrypt_encrypt branch 4 times, most recently from ede5c42 to 05e3718 Compare April 14, 2021 17:05
@Superhepper Superhepper marked this pull request as ready for review April 14, 2021 17:06
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.

LGTM, just a couple of typos

Tpm2PublicBuilder.

Signed-off-by: Jesper Brynolf <jesper.brynolf@gmail.com>
Signed-off-by: Jesper Brynolf <jesper.brynolf@gmail.com>
- Add more API documentation.
- Renamed a parameter in the method.

Signed-off-by: Jesper Brynolf <jesper.brynolf@gmail.com>
@ionut-arm ionut-arm merged commit 5f3579d into parallaxsecond:main Apr 29, 2021
@Superhepper Superhepper deleted the decrypt_encrypt branch September 10, 2021 15:49
tgonzalezorlandoarm pushed a commit to tgonzalezorlandoarm/rust-tss-esapi that referenced this pull request Mar 14, 2024
…henticators

Add implementation for ListAuthenticators operation
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