Lines Matching refs:seed
17 /* Check the entropy seed file.
23 * the entropy seed file exists and has exactly this size,
26 * the entropy seed file does not exist or has a different size,
30 * \note We enforce that the seed is in a specific ITS file.
32 * the library is upgraded on a device with an existing seed.
36 /* The value of the random seed UID must not change. Otherwise that would
37 * break upgrades of the library on devices that already contain a seed
58 /* Remove the entropy seed file.
158 uint8_t *seed = NULL;
166 TEST_CALLOC(seed, seed_size);
167 /* fill seed with some data */
169 seed[i] = i;
178 status = mbedtls_psa_inject_entropy(seed, seed_length_a);
185 status = mbedtls_psa_inject_entropy(seed, seed_length_b);
199 mbedtls_free(seed);
210 uint8_t seed[MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE] = { 0 };
211 /* fill seed with some data */
212 for (i = 0; i < sizeof(seed); ++i) {
213 seed[i] = i;
222 status = mbedtls_psa_inject_entropy(seed, sizeof(seed));
224 TEST_ASSERT(check_random_seed_file(sizeof(seed)));
233 status = mbedtls_psa_inject_entropy(seed, sizeof(seed));
235 if (!check_random_seed_file(sizeof(seed))) {
243 /* The seed is written by nv_seed callback functions therefore the injection will fail */
244 status = mbedtls_psa_inject_entropy(seed, sizeof(seed));