-
Notifications
You must be signed in to change notification settings - Fork 96
Add ASN.1 ENUMERATED tag support #307
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 ASN.1 ENUMERATED tag support #307
Conversation
Thank you for your contribution! Even if the code is very simple, can you please add a few test cases in There's no code to parse ENUMERATED. Would you be able to add that as well? That's not a blocker (we don't require the feature set of asn1parse and asn1write to be identical), but it would be nice. |
Sure, I will add few tests. Do you want it in current PR, or it should be a new one? |
Please add the tests in the same PR. |
b64c4ee
to
c6a87ab
Compare
I have extended first commit by adding parser for ENUMERATED tag value. |
a68fbbc
to
acab185
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a few documentation and style issues but otherwise the code looks good to me.
tests/scripts/recursion.pl library/asn1write.c
is failing and that's a blocker. I don't know what it's complaining about.
Add ASN.1 ENUMERATED [1] tag to supported tag list. 1. https://tools.ietf.org/html/rfc3641#page-8 Signed-off-by: Mykhailo Sopiha <[email protected]>
Add test cases for writing and parsing ASN.1 ENUMERATED tag values. Signed-off-by: Mykhailo Sopiha <[email protected]>
acab185
to
6af7bf9
Compare
I see that some tests are failing, but I don't have access. Is there any info about that? |
All the test failures are due to a defective board on our CI. The rest passes and there's enough working coverage to validate this PR. |
New full CI run now that the boards are working again (internal link): https://jenkins-internal.mbed.com/job/mbed-crypto-pr/job/PR-307-merge/9/ → PASS |
Last major part of PTA refactoring. Remove PTA from the process of attestation extension generation. Details: - add keymaster_param_t parser - add helper functions for mbedTLS asn1 parser - remove asn1.[ch] files - add asn1 sequence functions - add asn1 multiple-octet tag functions - squash RSA/EC attestation function to a single one - remove ASN1 PTA part from attestation code Note: this commit won't work without mbedtls support for ASN1 ENUMERATED tag processing. Working on upstreaming [1] meanwhile using local version. See my optee fork, branch 'km3support'[2]. 1. ARMmbed/mbed-crypto#307 2. https://github.com/msopiha-linaro/optee_os/tree/km3support Signed-off-by: Mykhailo Sopiha <[email protected]>
Is anything required from me on this PR? |
You don't need to do anything else. All pull requests need to be approved by two team members, so the next action on this PR is a second review. If that's an approval, we'll merge the PR. |
Last major part of PTA refactoring. Remove PTA from the process of attestation extension generation. Details: - add keymaster_param_t parser - add helper functions for mbedTLS asn1 parser - remove asn1.[ch] files - add asn1 sequence functions - add asn1 multiple-octet tag functions - squash RSA/EC attestation function to a single one - remove ASN1 PTA part from attestation code Note: this commit won't work without mbedtls support for ASN1 ENUMERATED tag processing. Working on upstreaming [1] meanwhile using local version. See my optee fork, branch 'km3support'[2]. 1. ARMmbed/mbed-crypto#307 2. https://github.com/msopiha-linaro/optee_os/tree/km3support Signed-off-by: Mykhailo Sopiha <[email protected]>
* ARMmbed#321: Replace config.pl by config.py * ARMmbed#322: Update Mbed Crypto with latest Mbed TLS changes as of 2019-11-15 * ARMmbed#308: Small performance improvement of mbedtls_mpi_div_mpi() * ARMmbed#324: test_psa_constant_names: support key agreement, better code structure * ARMmbed#320: Link to the PSA crypto portal page from README.md * ARMmbed#293: Always gather MBEDTLS_ENTROPY_BLOCK_SIZE bytes of entropy * ARMmbed#310: Clarify test descriptions in test_suite_memory_buffer_alloc * ARMmbed#307: Add ASN.1 ENUMERATED tag support * ARMmbed#328: Remove dependency of crypto_values.h on crypto_extra.h * ARMmbed#325: Rename psa_asymmetric_{sign_verify} to psa_{sign,verify}_hash Missed listing in the previous submodule update: * ARMmbed#304: Make sure Asan failures are detected in 'make test'
Last major part of PTA refactoring. Remove PTA from the process of attestation extension generation. Details: - add keymaster_param_t parser - add helper functions for mbedTLS asn1 parser - remove asn1.[ch] files - add asn1 sequence functions - add asn1 multiple-octet tag functions - squash RSA/EC attestation function to a single one - remove ASN1 PTA part from attestation code Note: this commit won't work without mbedtls support for ASN1 ENUMERATED tag processing. Working on upstreaming [1] meanwhile using local version. See my optee fork, branch 'km3support'[2]. 1. ARMmbed/mbed-crypto#307 2. https://github.com/msopiha-linaro/optee_os/tree/km3support Signed-off-by: Mykhailo Sopiha <[email protected]>
Last major part of PTA refactoring. Remove PTA from the process of attestation extension generation. Details: - add keymaster_param_t parser - add helper functions for mbedTLS asn1 parser - remove asn1.[ch] files - add asn1 sequence functions - add asn1 multiple-octet tag functions - squash RSA/EC attestation function to a single one - remove ASN1 PTA part from attestation code Note: this commit won't work without mbedtls support for ASN1 ENUMERATED tag processing. Working on upstreaming [1] meanwhile using local version. See my optee fork, branch 'km3support'[2]. 1. ARMmbed/mbed-crypto#307 2. https://github.com/msopiha-linaro/optee_os/tree/km3support Signed-off-by: Mykhailo Sopiha <[email protected]>
Add support for ASN.1 ENUMERATED tag.