Remove RNG parameters from PK #169
Labels
api-break
This issue/PR breaks the API and must wait for a new major version
needs-design-approval
Needs design discussion / approval
size-s
Estimated task size: small (~2d)
In TF-PSA-Crypto 1.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 the functions in
include/mbedtls/pk.h
andsrc/pk*
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: