mbedtls_rsa_validate_crt() is only used within mbedTLS.
 
Symbols
loading (4/5)...
Files
mbedTLS
esp_crt_bundle
mbedtls
3rdparty
include
library
port
ESP-IDF
FreeRTOS
cJSON
lwIP
SummarySyntaxArgumentsRelatedReferencesCall TreeData Use

Return value

- 0 if the following conditions are satisfied: - D = DP mod P-1 if P, D, DP != NULL - Q = DQ mod P-1 if P, D, DQ != NULL - QP = Q^-1 mod P if P, Q, QP != NULL - \c MBEDTLS_ERR_RSA_KEY_CHECK_FAILED if check failed, potentially including \c MBEDTLS_ERR_MPI_XXX if some MPI calculations failed. - \c MBEDTLS_ERR_RSA_BAD_INPUT_DATA if insufficient data was provided to check DP, DQ or QP.

Notes

This is a 'static' helper function not operating on an RSA context. Alternative implementations need not overwrite it. The function can be used with a restricted set of arguments to perform specific checks only. E.g., calling it with the parameters (P, -, D, DP, -, -) will check DP = D mod P-1.

References