31#include "dev/moteid.h"
32#include "lib/simEnvChange.h"
33#include "lib/random.h"
45doInterfaceActionsBeforeTick(
void)
47 if (simMoteIDChanged) {
54 (
const uint8_t *)&simRandomSeed,
sizeof(simRandomSeed),
61COOJA_PRE_TICK_ACTION(COOJA_MOTEID_INIT_PRIO, doInterfaceActionsBeforeTick);
An OFB-AES-128-based CSPRNG.
void random_init(unsigned short seed)
Seed the cc2538 random number generator.
void sha_256_hkdf(const uint8_t *salt, size_t salt_len, const uint8_t *ikm, size_t ikm_len, const uint8_t *info, size_t info_len, uint8_t *okm, uint_fast16_t okm_len)
Performs both extraction and expansion as per RFC 5869.
void csprng_feed(struct csprng_seed *new_seed)
Mixes a new seed with the current one.
Platform-independent SHA-256 API.
This is the structure of a seed.
uint8_t u8[(AES_128_KEY_LENGTH+AES_128_BLOCK_SIZE)]
for convenience