mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
pk: fix some comments
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@ -173,7 +173,7 @@ typedef struct mbedtls_pk_rsassa_pss_options {
|
|||||||
|
|
||||||
/* Internal helper to define which fields in the pk_context structure below
|
/* Internal helper to define which fields in the pk_context structure below
|
||||||
* should be used for EC keys: legacy ecp_keypair or the raw (PSA friendly)
|
* should be used for EC keys: legacy ecp_keypair or the raw (PSA friendly)
|
||||||
* format. It should be noticed that this only affect how data is stored, not
|
* format. It should be noticed that this only affects how data is stored, not
|
||||||
* which functions are used for various operations. The overall picture looks
|
* which functions are used for various operations. The overall picture looks
|
||||||
* like this:
|
* like this:
|
||||||
* - if USE_PSA is not defined and ECP_C is then use ecp_keypair data structure
|
* - if USE_PSA is not defined and ECP_C is then use ecp_keypair data structure
|
||||||
@ -202,7 +202,7 @@ typedef struct mbedtls_pk_rsassa_pss_options {
|
|||||||
|
|
||||||
/* Internal helper to define which fields in the pk_context structure below
|
/* Internal helper to define which fields in the pk_context structure below
|
||||||
* should be used for EC keys: legacy ecp_keypair or the raw (PSA friendly)
|
* should be used for EC keys: legacy ecp_keypair or the raw (PSA friendly)
|
||||||
* format. It should be noticed that this only affect how data is stored, not
|
* format. It should be noted that this only affect how data is stored, not
|
||||||
* which functions are used for various operations. The overall picture looks
|
* which functions are used for various operations. The overall picture looks
|
||||||
* like this:
|
* like this:
|
||||||
* - if USE_PSA is not defined and ECP_C is then use ecp_keypair data structure
|
* - if USE_PSA is not defined and ECP_C is then use ecp_keypair data structure
|
||||||
@ -213,9 +213,9 @@ typedef struct mbedtls_pk_rsassa_pss_options {
|
|||||||
* - if !ECP_C then use new raw data and PSA functions directly.
|
* - if !ECP_C then use new raw data and PSA functions directly.
|
||||||
*
|
*
|
||||||
* The main reason for the "intermediate" (USE_PSA + ECP_C) above is that as long
|
* The main reason for the "intermediate" (USE_PSA + ECP_C) above is that as long
|
||||||
* as ECP_C is defined mbedtls_pk_ec() gives the user a read/write access to the
|
* as ECP_C is defined mbedtls_pk_ec() gives the user read/write access to the
|
||||||
* ecp_keypair structure inside the pk_context so he/she can modify it using
|
* ecp_keypair structure inside the pk_context so they can modify it using
|
||||||
* ECP functions which are not under PK module's control.
|
* ECP functions which are not under the PK module's control.
|
||||||
*/
|
*/
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO) && defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY) && \
|
#if defined(MBEDTLS_USE_PSA_CRYPTO) && defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY) && \
|
||||||
!defined(MBEDTLS_ECP_C)
|
!defined(MBEDTLS_ECP_C)
|
||||||
|
Reference in New Issue
Block a user