Remove RNG parameters from public X.509 APIs #9929
Labels
api-break
This issue/PR breaks the API and must wait for a new major version
component-x509
needs-design-approval
size-s
Estimated task size: small (~2d)
In Mbed TLS 4.0, all RNG calls will go to the PSA RNG. So public functions must no longer take an RNG callback (it would not be honored).
Legacy RNG callbacks have the following form:
The goal of this task is to update all the public functions in Mbed TLS X.509 APIs (
include/mbedtls/x509*.h
) that take an RNG argument:f_rng
andp_rng
arguments from the function prototypes.f_rng
andp_rng
arguments in internal functions in the same modules where they're propagated down.f_rng
to instead callpsa_generate_random
.f_rng
andp_rng
are passed to a function in another module that takes an RNG argument, passmbedtls_psa_get_random
andMBEDTLS_PSA_RANDOM_STATE
from<mbedtls/psa_util.h>
.The text was updated successfully, but these errors were encountered: