31#include "dev/moteid.h"
32#include "lib/simEnvChange.h"
45doInterfaceActionsBeforeTick(
void)
47 if (simMoteIDChanged) {
53 (
const uint8_t *)&simRandomSeed,
sizeof(simRandomSeed),
60COOJA_PRE_TICK_ACTION(COOJA_MOTEID_INIT_PRIO, doInterfaceActionsBeforeTick);
An OFB-AES-128-based CSPRNG.
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.
Header file for generating non-cryptographic random numbers.
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