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

Allow omitting OID name/description #134

Closed
pkolbus opened this issue Jun 2, 2019 · 3 comments
Closed

Allow omitting OID name/description #134

pkolbus opened this issue Jun 2, 2019 · 3 comments

Comments

@pkolbus
Copy link
Contributor

pkolbus commented Jun 2, 2019

Description

On small systems (e.g. Cortex-M4) every KB of code footprint counts, and the OID name and description string tend to only be needed in certain debugging/tools contexts (e.g. mbedtls_x509_crt_info()). I've noticed that when building with -ffunction-sections, -fdata-sections, and gc-sections, there are a few KB of wasted code space because constant strings are entangled to types in a way that makes it hard for a linker to omit them.

I have a similar approach in mind as Mbed-TLS/mbedtls#2315, and propose the configuration MBEDTLS_OID_NAMES. If you agree I can get started on the PR.

Note that because mbed TLS now uses mbed-crypto, this issue is a dependency for that PR.

Issue request type

[ ] Question
[X] Enhancement
[ ] Bug
@ciarmcom
Copy link
Member

ciarmcom commented Jun 2, 2019

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

@adbridge
Copy link

adbridge commented Nov 4, 2019

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

@gilles-peskine-arm
Copy link
Collaborator

This will finally be resolved through Mbed-TLS/mbedtls#9379 in TF-PSA-Crypto 1.0 and Mbed TLS 4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants