-
Couldn't load subscription status.
- Fork 2.8k
Open
Labels
archivedDo not use - historically applied to archived issuesDo not use - historically applied to archived issuessize-sEstimated task size: small (~2d)Estimated task size: small (~2d)
Description
The function mbedtls_pk_get_type() is not public and we should stop using it. The old concept of pk_type_t was ambiguous, so there will be different replacements depending of what it was used for.
- Key type as in "RSA or ECC?" (hint: the result is used distinguishing "RSA or RSASSA_PSS" vs "ECKEY or ECKEY_DH or ECDSA" which is really an overly complicated way of spelling RSA or ECC) -> use
mbedtls_pk_get_key_type()(introduced by PK: addmbedtls_pk_get_key_type()TF-PSA-Crypto#509) plus PSA macros likePSA_KEY_TYPE_IS_RSA()andPSA_KEY_TYPE_IS_ECC(). - Indication of ownership of the underlying PSA key (hint: checking for equality with
PK_OPAQUE) -> store ownership information elsewhere. - Algorithm identifier (hint: when it's cast to
pk_sigalg_t) -> this one is more tricky and should be reviewed on a case by case basis. - Key type with policy information, to distinguish between
ECKEY_DHpublic keys (forbidding ECDSA) andECKEYpublic keys (allowing both ECDH and ECDSA).
Metadata
Metadata
Assignees
Labels
archivedDo not use - historically applied to archived issuesDo not use - historically applied to archived issuessize-sEstimated task size: small (~2d)Estimated task size: small (~2d)
Type
Projects
Status
1.0 Followup