Hi @abomin3v3l
- The prototype of your callbacks is as you showed, but you can name them as you wish ( it is prefered for better readbality) .
If I’m correct, what should I use as input argument for “*ctx”? Is it “&ctr_drbg” or “&ssl”?
Neither, this is an opaque context for yout bio callbacks, that will have whatever data you need for your callbacks. For example, in the Mbed TLS example, it is a wrapper for the socket fd.
- If you have
MBEDTLS_NO_PLATFORM_ENTROPY, since Mbed TLS doesn’t have a built-in entropy for your platform, for test purposes only you can try setting the unsewcure definition ofMBEDTLS_TEST_NULL_ENTROPY. However, if your platform have some entropy source based on your radio-frequency, you can write a wrapper function, as defined in the article I referenced for adding a TRNG source, and as defined here by definingMBEDTLS_ENTROPY_HARDWARE_ALT
Regards