mbedTLS + 0/1 examples
SourceVu will show references to mbedtls_mpi_random() from the following samples and libraries:
 
Symbols
loading...
Files
loading (3/5)...
SummarySyntaxArgumentsRelatedExamplesReferencesCall TreeData Use

Return value

\c 0 if successful. #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed. #MBEDTLS_ERR_MPI_BAD_INPUT_DATA if \p min or \p N is invalid or if they are incompatible. #MBEDTLS_ERR_MPI_NOT_ACCEPTABLE if the implementation was unable to find a suitable value within a limited number of attempts. This has a negligible probability if \p N is significantly larger than \p min, which is the case for all usual cryptographic applications. Another negative error code on failure.

Notes

There are `N - min` possible outputs. The lower bound \p min can be reached, but the upper bound \p N cannot.

References

from 0/1 examples