mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-27 23:37:08 +00:00
pk: fix documentation for mbedtls_pk_copy_from_psa()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
64d5fc0070
commit
3b98c640ce
@ -395,8 +395,7 @@ int mbedtls_pk_setup_opaque(mbedtls_pk_context *ctx,
|
|||||||
* \brief Create a PK context starting from a key stored in PSA.
|
* \brief Create a PK context starting from a key stored in PSA.
|
||||||
* This key:
|
* This key:
|
||||||
* - must be exportable and
|
* - must be exportable and
|
||||||
* - must be a either an RSA or EC key (DH is not managed in PK) and
|
* - must be an RSA or EC key pair or public key (FFDH is not supported in PK).
|
||||||
* - must be either a key pair or a public key.
|
|
||||||
*
|
*
|
||||||
* The resulting PK object will be a transparent type:
|
* The resulting PK object will be a transparent type:
|
||||||
* - #MBEDTLS_PK_RSA for RSA keys or
|
* - #MBEDTLS_PK_RSA for RSA keys or
|
||||||
@ -423,7 +422,7 @@ int mbedtls_pk_setup_opaque(mbedtls_pk_context *ctx,
|
|||||||
* but not set up.
|
* but not set up.
|
||||||
*
|
*
|
||||||
* \return 0 on success.
|
* \return 0 on success.
|
||||||
* \return MBEDTLS_ERR_PK_BAD_INPUT_DATA in case the provided input
|
* \return #MBEDTLS_ERR_PK_BAD_INPUT_DATA in case the provided input
|
||||||
* parameters are not correct.
|
* parameters are not correct.
|
||||||
*/
|
*/
|
||||||
int mbedtls_pk_copy_from_psa(mbedtls_svc_key_id_t key_id, mbedtls_pk_context *pk);
|
int mbedtls_pk_copy_from_psa(mbedtls_svc_key_id_t key_id, mbedtls_pk_context *pk);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user