Repository navigation
xtest: pkcs11: test RSA AES wrap with padded keys - #862
Merged
Merged
Conversation
|
Looks good to me. |
Contributor
Author
|
Attached reviewed-by tag. |
Contributor
|
I'm starting the CI job when #863 is merged. |
Contributor
|
Merging when CI passes. |
Contributor
|
Please rebase on master to fix the CI problem. |
Exercise RSA AES key wrapping with 20- and 33-byte generic secrets. Check that a length query and a one-byte-short buffer report the same padded length, then retry with that length and verify the unwrapped key value. Signed-off-by: Sungbae Yoo <sungbaey@nvidia.com> Reviewed-by: Selvam Sathappan Periakaruppan <selvam.periakaruppan@oss.qualcomm.com>
Contributor
Author
|
@jenswikl Just rebased on master. |
Contributor
|
Merging when CI passes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on OP-TEE/optee_os#8300.
Extend
pkcs11_1026to wrap 20- and 33-byte generic secret keys with RSA-2048. Verify that a length query and a one-byte-short buffer both report the required length of 288 or 304 bytes, respectively. Retry with the reported length, unwrap the key, and compareCKA_VALUEwith the original.Verified on QEMU with
xtest -t pkcs11 1026. The test fails before the companion fix, and all 13 subcases pass with it.