Re: [PATCH] Change "efi" to "EFI" in grub-mkrescue for secure boot

2024-09-08 Thread Pascal Hambourg
On 07/09/2024 at 10:30, Thomas Schmitt via Grub-devel wrote: Pascal Hambourg wrote: When booting from a EFI partition on a regular disk, then $root is set to the EFI partition (hdX,Y). When booting from a EFI El Torito image on a CD, then $root is set to the whole CD (cdX), and the El Torito ima

Re: [PATCH v5 1/5] Import libgcrypt 1.10.3

2024-09-08 Thread Vladimir 'phcoder' Serbinenko
On Thu, Sep 5, 2024 at 3:53 PM Daniel Kiper wrote: > > On Tue, Sep 03, 2024 at 08:29:30PM +0300, Vladimir Serbinenko wrote: > > We currently use an old version of libcrypt which > > results in us having fewer ciphers and missing on many > > other improvements. > > > > Signed-off-by: Vladimir Serbi

[PATCH v5 5/5] keccak: Disable acceleration with SSE asm

2024-09-08 Thread Vladimir Serbinenko
Libgcrypt code assumes that on x64 all SSE registers are fair game. While it's true that CPUs in question support it, we disable it in our compilation options. Disable the offending optimization. Signed-off-by: Vladimir Serbinenko --- .../lib/libgcrypt-patches/02_keccak_sse.patch | 23 ++

[PATCH v5 2/5] Import b64dec from gpg-error

2024-09-08 Thread Vladimir Serbinenko
Base on libgpg-error 1.49 but with modifications to make it compile in GRUB environment Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 293 + 1 file changed, 293 insertions(+) create mode 100644 grub-core/lib/b64dec.c diff --git a/grub-c

[PATCH v5 4/5] Add DSA and RSA SEXP tests

2024-09-08 Thread Vladimir Serbinenko
This allows us to test purely the integration of the implementation of DSA and RSA from libgcrypt without concerning with additional code. Signed-off-by: Vladimir Serbinenko --- grub-core/tests/dsa_sexp_test.c | 125 grub-core/tests/rsa_sexp_test.c | 99

[PATCH v5 3/5] Adjust import script, definitions and API users for libgcrypt 1.11

2024-09-08 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- autogen.sh| 5 + conf/Makefile.common | 4 +- grub-core/Makefile.core.def | 36 ++- grub-core/commands/hashsum.c | 2 +- grub-core/commands/legacycfg.c