Home
last modified time | relevance | path

Searched refs:rng_seed (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/arch/x86/coco/
H A Dcore.c162 unsigned long rng_seed[32 / sizeof(long)]; in cc_random_init() local
175 for (i = 0; i < ARRAY_SIZE(rng_seed); i += longs) { in cc_random_init()
176 longs = arch_get_random_longs(&rng_seed[i], ARRAY_SIZE(rng_seed) - i); in cc_random_init()
189 add_device_randomness(rng_seed, sizeof(rng_seed)); in cc_random_init()
190 memzero_explicit(rng_seed, sizeof(rng_seed)); in cc_random_init()
/openbmc/linux/arch/um/kernel/
H A Dum_arch.c415 u8 rng_seed[32]; in setup_arch() local
428 if (os_getrandom(rng_seed, sizeof(rng_seed), 0) == sizeof(rng_seed)) { in setup_arch()
429 add_bootloader_randomness(rng_seed, sizeof(rng_seed)); in setup_arch()
430 memzero_explicit(rng_seed, sizeof(rng_seed)); in setup_arch()
/openbmc/qemu/hw/microblaze/
H A Dboot.c79 uint8_t rng_seed[32]; in microblaze_load_dtb() local
88 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in microblaze_load_dtb()
89 qemu_fdt_setprop(fdt, "/chosen", "rng-seed", rng_seed, sizeof(rng_seed)); in microblaze_load_dtb()
/openbmc/qemu/hw/rx/
H A Drx-gdbsim.c89 uint8_t rng_seed[32]; in rx_gdbsim_init() local
147 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in rx_gdbsim_init()
148 qemu_fdt_setprop(dtb, "/chosen", "rng-seed", rng_seed, sizeof(rng_seed)); in rx_gdbsim_init()
/openbmc/qemu/hw/m68k/
H A Dvirt.c108 struct bi_record *rng_seed = opaque; in rerandomize_rng_seed() local
109 qemu_guest_getrandom_nofail((void *)rng_seed->data + 2, in rerandomize_rng_seed()
110 be16_to_cpu(*(uint16_t *)rng_seed->data)); in rerandomize_rng_seed()
132 uint8_t rng_seed[32]; in virt_init() local
279 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in virt_init()
281 rng_seed, sizeof(rng_seed)); in virt_init()
H A Dq800.c117 struct bi_record *rng_seed = opaque; in rerandomize_rng_seed() local
118 qemu_guest_getrandom_nofail((void *)rng_seed->data + 2, in rerandomize_rng_seed()
119 be16_to_cpu(*(uint16_t *)rng_seed->data)); in rerandomize_rng_seed()
276 uint8_t rng_seed[32]; in q800_machine_init() local
627 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in q800_machine_init()
629 rng_seed, sizeof(rng_seed)); in q800_machine_init()
/openbmc/linux/arch/mips/kernel/
H A Dsetup.c766 u8 rng_seed[512]; in setup_rng_seed() local
772 len = min(sizeof(rng_seed), strlen(rng_seed_hex) / 2); in setup_rng_seed()
773 if (hex2bin(rng_seed, rng_seed_hex, len)) in setup_rng_seed()
776 add_bootloader_randomness(rng_seed, len); in setup_rng_seed()
777 memzero_explicit(rng_seed, len); in setup_rng_seed()
/openbmc/linux/drivers/of/
H A Dkexec.c446 void *rng_seed; in of_kexec_alloc_and_setup_fdt() local
449 RNG_SEED_SIZE, &rng_seed); in of_kexec_alloc_and_setup_fdt()
452 get_random_bytes(rng_seed, RNG_SEED_SIZE); in of_kexec_alloc_and_setup_fdt()
H A Dfdt.c1157 const void *rng_seed; in early_init_dt_scan_chosen() local
1172 rng_seed = of_get_flat_dt_prop(node, "rng-seed", &l); in early_init_dt_scan_chosen()
1173 if (rng_seed && l > 0) { in early_init_dt_scan_chosen()
1174 add_bootloader_randomness(rng_seed, l); in early_init_dt_scan_chosen()
/openbmc/qemu/hw/openrisc/
H A Dvirt.c134 uint8_t rng_seed[32]; in openrisc_create_fdt() local
192 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in openrisc_create_fdt()
193 qemu_fdt_setprop(fdt, "/chosen", "rng-seed", rng_seed, sizeof(rng_seed)); in openrisc_create_fdt()
/openbmc/qemu/hw/mips/
H A Dboston.c371 uint8_t rng_seed[32]; in boston_fdt_filter() local
379 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in boston_fdt_filter()
380 qemu_fdt_setprop(fdt, "/chosen", "rng-seed", rng_seed, sizeof(rng_seed)); in boston_fdt_filter()
H A Dmalta.c856 uint8_t rng_seed[32]; in rng_seed_hex_new() local
858 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in rng_seed_hex_new()
859 return qemu_hexdump_line(NULL, rng_seed, sizeof(rng_seed), 0, 0); in rng_seed_hex_new()
/openbmc/qemu/hw/ppc/
H A De500.c407 uint8_t rng_seed[32]; in ppce500_load_device_tree() local
465 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in ppce500_load_device_tree()
466 qemu_fdt_setprop(fdt, "/chosen", "rng-seed", rng_seed, sizeof(rng_seed)); in ppce500_load_device_tree()
/openbmc/qemu/hw/riscv/
H A Dvirt.c1058 uint8_t rng_seed[32]; in create_fdt() local
1088 qemu_guest_getrandom_nofail(rng_seed, sizeof(rng_seed)); in create_fdt()
1090 rng_seed, sizeof(rng_seed)); in create_fdt()