mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01: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:
parent
53546ea099
commit
7c025a9f50
3 changed files with 16 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue