Test error cases of PK parse #79

Open
opened 2019-03-04 11:55:08 -06:00 by gilles-peskine-arm · 2 comments
gilles-peskine-arm commented 2019-03-04 11:55:08 -06:00 (Migrated from github.com)

Description

A code coverage review shows some test gaps in mbedtls_pk_parse_subpubkey: many error cases are never hit by the Mbed TLS, and many more are only hit by X.509 and TLS tests but not by crypto unit tests. So in Mbed Crypto, many error cases are not tested. Likewise, mbedtls_pem_read_buffer lacks a unit test for BASE64_INVALID_CHARACTER.

Issue request type

[ ] Question
[x] Enhancement
[ ] Bug
### Description A code coverage review shows some test gaps in `mbedtls_pk_parse_subpubkey`: many error cases are never hit by the Mbed TLS, and many more are only hit by X.509 and TLS tests but not by crypto unit tests. So in Mbed Crypto, many error cases are not tested. Likewise, `mbedtls_pem_read_buffer` lacks a unit test for `BASE64_INVALID_CHARACTER`. ### Issue request type <!-- Required Please add only one X to one of the following types. Do not fill multiple types (split the issue otherwise.) Please note this is not a GitHub task list, indenting the boxes or changing the format to add a '.' or '*' in front of them would change the meaning incorrectly. The only changes to be made are to add a description text under the description heading and to add a 'x' to the correct box. --> [ ] Question [x] Enhancement [ ] Bug
ciarmcom commented 2019-03-06 15:40:17 -06:00 (Migrated from github.com)

Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-717

*Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-717*
adbridge commented 2019-11-04 06:46:56 -06:00 (Migrated from github.com)

Apologies, this was closed in error by the automated bot - re-opening.

Apologies, this was closed in error by the automated bot - re-opening.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-ARMmbed/mbed-crypto#79
No description provided.