Merge pull request #10068 from gilles-peskine-arm/pk-0e-prototype-3.6

Minor documentation fixes in pk.h
This commit is contained in:
Gilles Peskine
2026-03-09 13:57:34 +00:00
committed by GitHub

View File

@@ -218,8 +218,11 @@ typedef struct mbedtls_pk_info_t mbedtls_pk_info_t;
* \brief Public key container
*/
typedef struct mbedtls_pk_context {
const mbedtls_pk_info_t *MBEDTLS_PRIVATE(pk_info); /**< Public key information */
void *MBEDTLS_PRIVATE(pk_ctx); /**< Underlying public key context */
/** Method table */
const mbedtls_pk_info_t *MBEDTLS_PRIVATE(pk_info);
/** Underlying type-specific key context */
void *MBEDTLS_PRIVATE(pk_ctx);
/* The following field is used to store the ID of a private key in the
* following cases:
* - opaque key when MBEDTLS_USE_PSA_CRYPTO is defined
@@ -838,7 +841,7 @@ int mbedtls_pk_verify_ext(mbedtls_pk_type_t type, const void *options,
* length up to the hash length), depending on the padding mode
* in the underlying RSA context. For a pk object constructed
* by parsing, this is PKCS#1 v1.5 by default. Use
* mbedtls_pk_verify_ext() to explicitly select a different
* mbedtls_pk_sign_ext() to explicitly select a different
* algorithm.
*
* \return 0 on success, or a specific error code.