mirror of
https://github.com/kmackay/micro-ecc.git
synced 2026-10-10 01:37:33 +00:00
platform-specific.inc: add support for RIOT-OS
This commit is contained in:
@@ -66,6 +66,16 @@ static int default_RNG(uint8_t *dest, unsigned size) {
|
|||||||
}
|
}
|
||||||
#define default_RNG_defined 1
|
#define default_RNG_defined 1
|
||||||
|
|
||||||
|
#elif defined(RIOT_VERSION)
|
||||||
|
|
||||||
|
#include <random.h>
|
||||||
|
|
||||||
|
static int default_RNG(uint8_t *dest, unsigned size) {
|
||||||
|
random_bytes(dest, size);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
#define default_RNG_defined 1
|
||||||
|
|
||||||
#endif /* platform */
|
#endif /* platform */
|
||||||
|
|
||||||
#endif /* _UECC_PLATFORM_SPECIFIC_H_ */
|
#endif /* _UECC_PLATFORM_SPECIFIC_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user