mbedtls_rsa_check_pubkey() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_rsa_check_pubkey() function

This function checks if a context contains at least an RSA public key. If the function runs successfully, it is guaranteed that enough information is present to perform an RSA public key operation using mbedtls_rsa_public().

Syntax

int mbedtls_rsa_check_pubkey( const mbedtls_rsa_context *ctx );

Arguments

ctx

The initialized RSA context to check.

Return value

\c 0 on success. An \c MBEDTLS_ERR_RSA_XXX error code on failure.

References

LocationText
rsa.h:460
int mbedtls_rsa_check_pubkey( const mbedtls_rsa_context *ctx );