mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Generalize dh_flag in mbedtls_mpi_gen_prime
Setting the dh_flag to 1 used to indicate that the caller requests safe primes from mbedtls_mpi_gen_prime. We generalize the functionality to make room for more flags in that parameter.
This commit is contained in:
@ -706,7 +706,7 @@ mbedtls_mpi_gen_prime:128:0:0
|
||||
|
||||
Test mbedtls_mpi_gen_prime (Safe)
|
||||
depends_on:MBEDTLS_GENPRIME
|
||||
mbedtls_mpi_gen_prime:128:1:0
|
||||
mbedtls_mpi_gen_prime:128:MBEDTLS_MPI_GEN_PRIME_FLAG_DH:0
|
||||
|
||||
Test bit getting (Value bit 25)
|
||||
mbedtls_mpi_get_bit:10:"49979687":25:1
|
||||
|
Reference in New Issue
Block a user