Lines Matching refs:seed
53 * efi_random_get_seed() - provide random seed as configuration table
70 struct linux_efi_random_seed *prev_seed, *seed = NULL;
80 * Check whether a seed was provided by a prior boot stage. In that
83 * Note that we should read the seed size with caution, in case the
94 * allocation will survive a kexec reboot (although we refresh the seed
98 struct_size(seed, bits, seed_size),
99 (void **)&seed);
101 efi_warn("Failed to allocate memory for RNG seed.\n");
106 EFI_RANDOM_SEED_SIZE, seed->bits);
114 EFI_RANDOM_SEED_SIZE, seed->bits);
119 seed->size = seed_size;
121 memcpy(seed->bits + EFI_RANDOM_SEED_SIZE, prev_seed->bits,
124 status = efi_bs_call(install_configuration_table, &rng_table_guid, seed);
129 /* wipe and free the old seed if we managed to install the new one */
136 memzero_explicit(seed, struct_size(seed, bits, seed_size));
137 efi_bs_call(free_pool, seed);
138 efi_warn("Failed to obtain seed from EFI_RNG_PROTOCOL\n");
141 efi_warn("Retaining bootloader-supplied seed only");