Privatize functions and some types/macros in cipher primitive headers #271
No reviewers
Labels
No labels
api-break
approved
bug
component-docs
component-platform
component-test
dependencies
deprecation
DO-NOT-MERGE
enhancement
good first issue
help wanted
needs-adoption
needs-backports
needs-ci
needs-design-approval
needs-info
needs-preceding-pr
needs-review
needs-reviewer
needs-work
priority-high
priority-low
priority-medium
priority-scheduled
priority-very-high
resolved-after-1.1
single-reviewer
size-l
size-m
size-optimisation
size-s
size-xs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Mbed-TLS/TF-PSA-Crypto!271
Loading…
Reference in a new issue
No description provided.
Delete branch "privatize-cipher-primitive-functions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Privatizes all functions in the following files by guarding them with
MBEDTLS_DECLARE_PRIVATE_IDENTIFIERSaes.haria.hcamellia.hdes.hchacha20.hchachapoly.hpoly1305.hAlso privatizes all
MBEDTLS_<CIPHER>_ENCRYPT&MBEDTLS_<CIPHER>_DECRYPTmacros, including unlinking them from the Doxygen to avoid CI errors.Also privatizes the macros:
MBEDTLS_ARIA_MAX_KEYSIZEMBEDTLS_DES_KEY_SIZEPrivatizes the types:
mbedtls_aes_xtx_contextmbedtls_aes_implementationmbedtls_des_contextmbedtls_des3_contextDoes not privatize the types/macros:
MBEDTLS_ARIA_BLOCKSIZEMBEDTLS_ARIA_MAX_ROUNDSmbedtls_aes_contextmbedls_aria_contextmbedtls_camellia_contextmbedtls_chacha20_contextmbedtls_chachapoly_mode_tmbedtls_chachapoly_contextmbedtls_poly1305_contextResolves https://github.com/Mbed-TLS/TF-PSA-Crypto/issues/225
PR checklist
MBEDTLS_DECLARE_PRIVATE_IDENTIFIERSThe OpenCI PR tests failed due to network stuff - I can't see a way to re-run them without updating the patch. Presumably the Internal CI has validated this PR but I don't know if the OpenCI PR tests need to pass for the PR to be merged?
@felixc-arm Make sure you're logged in to an account associated with your GitHub account, then you'll see a rerun icon, or go to the job page and click “Build Now”.
I've gone and restarted this one.
@ -35,9 +35,11 @@#include <stddef.h>Can we add the /* MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS */ comment onto here?
@ -18,8 +18,10 @@Can we add the /* MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS */ comment onto here?
@ -22,18 +22,23 @@#include <stddef.h>Can we add the /* MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS */ comment onto here?
Can we add the /* MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS */ comment onto here?
OpenCI failed due to https://github.com/Mbed-TLS/TF-PSA-Crypto/issues/286. I've restarted the build.
@gilles-peskine-arm I think this need a rebase to pass due to https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/212 & its corresponding
mbedtlsPR, so I've done that & hopefully it will all be green...