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

xtest: pkcs11_1000.c: Add tests for AES-GCM (take 2) #730

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

etienne-lms
Copy link
Contributor

This P-R supersedes #720.

These test depends on OP-TEE/optee_os#6683 and OP-TEE/optee_client#375.

@maroueneboubakri
Copy link
Contributor

Reviewed-by: Marouene Boubakri <marouene.boubakri@nxp.com>

Extends Test 1005 to include checks for AES-GCM flag with both
valid and invalid uage.

Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Extends Test 1005 to include checks for AES-GCM with both
valid and invalid modes.

Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Add pkcs11_1030 test case for CKM_AES_GCM encryption and decryption tests
based on AES GCM test vectors from regression_4000_data.h.

Each vector is tested with both the one-shot API function C_Encrypt()
(resp. C_Decrypt()) and the update/final stepped processing API functions
C_EncryptUpdate() and C_EncryptFinal() (resp. C_DecryptUpdate() and
C_DecryptFinal()). Each test vector is also tested with modified cipher
text and modified authentication for a negative case.

Reviewed-by: Marouene Boubakri <marouene.boubakri@nxp.com>
Co-developed-by: Marouene Boubakri <marouene.boubakri@nxp.com>
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
@etienne-lms
Copy link
Contributor Author

Review tag applied and series rebased.

@jforissier jforissier merged commit a641f18 into OP-TEE:master Feb 22, 2024
2 checks passed
@etienne-lms etienne-lms deleted the pkcs11-aes-gcm branch February 23, 2024 08:47
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