mbedtls_rsa_validate_params() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferencesCall TreeData Use

Return value

- 0 if the following conditions are satisfied if all relevant parameters are provided: - P prime if f_rng != NULL (%) - Q prime if f_rng != NULL (%) - 1 < N = P * Q - 1 < D, E < N - D and E are modular inverses modulo P-1 and Q-1 (%) This is only done if MBEDTLS_GENPRIME is defined. - A non-zero error code otherwise.

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 (-,P,-,-,-) and a PRNG amounts to a primality check for P.

References