mirror of https://github.com/ARMmbed/mbed-os.git
mbedtls trng - remove MBEDTLS_ENTROPY_HARDWARE_ALT
MBEDTLS_ENTROPY_HARDWARE_ALT will be defined via config in mbedtls, the mbed wrapper should use DEVICE_TRNG.pull/2765/head
parent
ef58562ad0
commit
1b95c67dd2
|
@ -14,9 +14,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "hal/trng_api.h"
|
#if defined(DEVICE_TRNG)
|
||||||
|
|
||||||
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && defined(DEVICE_TRNG)
|
#include "hal/trng_api.h"
|
||||||
|
|
||||||
int mbedtls_hardware_poll( void *data, unsigned char *output, size_t len, size_t *olen ) {
|
int mbedtls_hardware_poll( void *data, unsigned char *output, size_t len, size_t *olen ) {
|
||||||
trng_t trng_obj;
|
trng_t trng_obj;
|
||||||
|
|
Loading…
Reference in New Issue