Skip to content

Fix issues in Cryptocell 310 cc_internal discovered by On Target Testing #8797

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

Merged
merged 1 commit into from
Nov 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions features/cryptocell/FEATURE_CRYPTOCELL310/cc_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ int convert_CrysError_to_mbedtls_err( CRYSError_t Crys_err )
case CRYS_ECPKI_GEN_KEY_INVALID_PRIVATE_KEY_PTR_ERROR:
case CRYS_ECPKI_EXPORT_PUBL_KEY_INVALID_PUBL_KEY_DATA_ERROR:
case CRYS_ECPKI_BUILD_KEY_INVALID_PRIV_KEY_DATA_ERROR:
case CRYS_ECPKI_BUILD_KEY_INVALID_PRIV_KEY_SIZE_ERROR:
case CRYS_ECPKI_BUILD_KEY_INVALID_PUBL_KEY_SIZE_ERROR:

Choose a reason for hiding this comment

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

What about CRYS_ECPKI_BUILD_KEY_INVALID_PUBL_KEY_DATA_ERROR and other CRYS_ECPKI_.*_INVALID_.*_KEY_.*_ERROR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can add these, but since these aren't returned in any of our tests, there will be a full list of tests to add.

Choose a reason for hiding this comment

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

Ok, so good enough for now.

return ( MBEDTLS_ERR_ECP_INVALID_KEY );

default:
Expand Down