micropython/ports/stm32/mboot/Particle.h

11 wiersze
351 B
C

// Header for libhydrogen use only. Act like a Particle board for the random
// implementation. This code is not actually called when just decrypting and
// verifying a signature, but a correct implementation is provided anyway.
#include "py/mphal.h"
#include "rng.h"
static inline uint32_t HAL_RNG_GetRandomNumber(void) {
return rng_get();
}