Re: [PATCH v2 05/16] x86/efi: Get entropy through EFI random number generator protocol

2015-08-26 Thread joeyli
On Thu, Aug 20, 2015 at 09:26:20PM +0100, Matt Fleming wrote: > On Tue, 11 Aug, at 02:16:25PM, Lee, Chun-Yi wrote: > > + > > +static unsigned long efi_get_rng64(efi_system_table_t *sys_table, > > + void **rng_handle) > > +{ > > + const struct efi_config *efi_early = _

Re: [PATCH v2 05/16] x86/efi: Get entropy through EFI random number generator protocol

2015-08-26 Thread joeyli
On Thu, Aug 20, 2015 at 03:47:06PM +0100, Matt Fleming wrote: > On Tue, 11 Aug, at 02:16:25PM, Lee, Chun-Yi wrote: > > To grab random numbers through EFI protocol as one of the entropies > > source of swsusp key, this patch adds the logic for accessing EFI RNG > > (random number generator) protocol

Re: [PATCH v2 05/16] x86/efi: Get entropy through EFI random number generator protocol

2015-08-20 Thread Matt Fleming
On Tue, 11 Aug, at 02:16:25PM, Lee, Chun-Yi wrote: > + > +static unsigned long efi_get_rng64(efi_system_table_t *sys_table, > +void **rng_handle) > +{ > + const struct efi_config *efi_early = __efi_early(); > + efi_rng_protocol_64 *rng = NULL; > + efi_gui

Re: [PATCH v2 05/16] x86/efi: Get entropy through EFI random number generator protocol

2015-08-20 Thread Matt Fleming
On Tue, 11 Aug, at 02:16:25PM, Lee, Chun-Yi wrote: > To grab random numbers through EFI protocol as one of the entropies > source of swsusp key, this patch adds the logic for accessing EFI RNG > (random number generator) protocol that's introduced since UEFI 2.4. > > Signed-off-by: Lee, Chun-Yi >

[PATCH v2 05/16] x86/efi: Get entropy through EFI random number generator protocol

2015-08-10 Thread Lee, Chun-Yi
To grab random numbers through EFI protocol as one of the entropies source of swsusp key, this patch adds the logic for accessing EFI RNG (random number generator) protocol that's introduced since UEFI 2.4. Signed-off-by: Lee, Chun-Yi --- arch/x86/boot/compressed/efi_random.c | 209 +