mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 03:40:04 +00:00
Clarify parameter ownership in mbedtls_rsa_import[_raw]
This commit is contained in:
parent
b5beaa8995
commit
5178dcab12
@ -332,6 +332,9 @@ void mbedtls_rsa_init( mbedtls_rsa_context *ctx,
|
|||||||
* and complete the provided information to a ready-for-use
|
* and complete the provided information to a ready-for-use
|
||||||
* public or private RSA key.
|
* public or private RSA key.
|
||||||
*
|
*
|
||||||
|
* \note The imported parameters are copied and need not be preserved
|
||||||
|
* for the lifetime of the RSA context being set up.
|
||||||
|
*
|
||||||
* \return 0 if successful, non-zero error code on failure.
|
* \return 0 if successful, non-zero error code on failure.
|
||||||
*/
|
*/
|
||||||
int mbedtls_rsa_import( mbedtls_rsa_context *ctx,
|
int mbedtls_rsa_import( mbedtls_rsa_context *ctx,
|
||||||
@ -362,6 +365,9 @@ int mbedtls_rsa_import( mbedtls_rsa_context *ctx,
|
|||||||
* and complete the provided information to a ready-for-use
|
* and complete the provided information to a ready-for-use
|
||||||
* public or private RSA key.
|
* public or private RSA key.
|
||||||
*
|
*
|
||||||
|
* \note The imported parameters are copied and need not be preserved
|
||||||
|
* for the lifetime of the RSA context being set up.
|
||||||
|
*
|
||||||
* \return 0 if successful, non-zero error code on failure.
|
* \return 0 if successful, non-zero error code on failure.
|
||||||
*/
|
*/
|
||||||
int mbedtls_rsa_import_raw( mbedtls_rsa_context *ctx,
|
int mbedtls_rsa_import_raw( mbedtls_rsa_context *ctx,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user