mbedtls_mpi_gen_prime() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferences

Return value

\c 0 if successful, in which case \p X holds a probably prime number. #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed. #MBEDTLS_ERR_MPI_BAD_INPUT_DATA if `nbits` is not between \c 3 and #MBEDTLS_MPI_MAX_BITS.

References

from examples