Rename PSA internal identifiers #241
Labels
api-spec
Issue or PR about the PSA specifications
enhancement
New feature or request
Jira status: REOPENED
mirrored
type: enhancement
Description
There are three categories of identifiers in the PSA part of the Mbed Crypo API.
psa_xxx
orPSA_XXX
.psa_xxx
ormbedtls_psa_xxx
. For functions, I usedmbedtls_psa_xxx
for things that I considered to be strictly Mbed Crypto only, andpsa_xxx
for things that I considered experimental features possibly to be added to PSA later. But in retrospect I don't think that distinction should be reflected in the naming. For macros, I stuck toPSA_XXX
to avoid complaints fromcheck-names.sh
.PSA_KEY_TYPE_CATEGORY_XXX
,PSA_ALG_AEAD_WITH_DEFAULT_TAG_LENGTH_CASE
, …). There are also a few types and structures incrypto_struct.h
.We should use separate namespaces for these three categories. Only the first category should use the reserved PSA namespace, which is yet to be defined (internal link: https://github.com/ARMmbed/psa-crypto/issues/248).
Issue request type
The text was updated successfully, but these errors were encountered: