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

Add AES CTS test case #166

Merged
merged 1 commit into from
Jan 20, 2017
Merged

Add AES CTS test case #166

merged 1 commit into from
Jan 20, 2017

Conversation

jforissier
Copy link
Contributor

Add test case for issue OP-TEE/optee_os#1203.

Signed-off-by: Jerome Forissier jerome.forissier@linaro.org

@jforissier
Copy link
Contributor Author

Depends on OP-TEE/optee_os#1301.

#define ciph_data_aes_cts_issue1203_iv ciph_data_aes_cts_vect1_iv

static const uint8_t ciph_data_aes_cts_issue1203_ptx[80] = {
0x00
Copy link
Contributor

Choose a reason for hiding this comment

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

The plaintext could be be a little more complicated to be able to detect if bytes are swapped or similar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Other test cases should detect that kind of problem, but I can just use random bytes as well. Will update.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please do, because in this case we're obviously triggering a different code path compared to the other test cases.

@jenswi-linaro
Copy link
Contributor

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

Add test case for issue OP-TEE/optee_os#1203.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
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