[PATCH v13 05/13] Add DSA and RSA SEXP tests

2025-05-24 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/Makefile.core.def | 16 grub-core/tests/dsa_sexp_test.c | 127 gr

[PATCH v13 00/13] Upgrade to libgcrypt 1.11

2025-05-24 Thread Vladimir Serbinenko
Upgrade to libgcrypt 1.11 Changes from v12: * Import blake_vl_hash * Remove changes to b64dec and use a special header instead ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

[PATCH v13 13/13] libgcrypt: Don't use 64-bit division on platforms where it's slow

2025-05-24 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- .../lib/libgcrypt-patches/07_disable_64div.patch | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/07_disable_64div.patch diff --git a/grub-core/lib/libgcrypt-patches/07_disable_64div.patch b/grub-c

[PATCH v13 10/13] libgcrypt: Import blake family of hashes

2025-05-24 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- .../lib/libgcrypt-patches/06_blake.patch | 80 +++ include/grub/crypto.h | 9 +++ util/import_gcry.py | 36 +++-- 3 files changed, 118 insertions(+), 7 deletions(-) create mode 1006

[PATCH v13 03/13] b64dec: Add harness for compilation in GRUB environment

2025-05-24 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- grub-core/lib/gpgrt-int.h | 24 1 file changed, 24 insertions(+) create mode 100644 grub-core/lib/gpgrt-int.h diff --git a/grub-core/lib/gpgrt-int.h b/grub-core/lib/gpgrt-int.h new file mode 100644 index 0..45d63580b --- /d

[PATCH v13 09/13] gcry: Ignore sign-compare warnings

2025-05-24 Thread Vladimir Serbinenko
libgcrypt itself is compiled with -Wno-sign-compare. Do the same for consistency Signed-off-by: Vladimir Serbinenko --- conf/Makefile.common| 2 +- grub-core/Makefile.core.def | 10 +- util/import_gcry.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --

[PATCH v13 04/13] Adjust import script, definitions and API users for libgcrypt 1.11

2025-05-24 Thread Vladimir Serbinenko
This patches modifies the GRUB-libgcrypt API to match new libgcrypt 1.11 Signed-off-by: Vladimir Serbinenko --- autogen.sh| 5 + conf/Makefile.common | 4 +- grub-core/Makefile.core.def | 20 +- grub-core/command

[PATCH v13 12/13] import_gcry: Fix pylint warnings

2025-05-24 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- util/import_gcry.py | 1276 +-- 1 file changed, 622 insertions(+), 654 deletions(-) diff --git a/util/import_gcry.py b/util/import_gcry.py index 9b0e8d936..086bde77c 100644 --- a/util/import_gcry.py +++ b/util/import_

[PATCH v13 11/13] import_gcry: Make compatible with python 3.4

2025-05-24 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- util/import_gcry.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util/import_gcry.py b/util/import_gcry.py index ca918c777..9b0e8d936 100644 --- a/util/import_gcry.py +++ b/util/import_gcry.py @@ -249,15 +249,15 @@ for ciphe

[PATCH v13 06/13] keccak: Disable acceleration with SSE asm

2025-05-24 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 | 25 ++

[PATCH v13 07/13] libgcrypt: Fix coverity warnings

2025-05-24 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- .../libgcrypt-patches/03_mpiutil_alloc.patch | 20 ++ .../lib/libgcrypt-patches/03_sexp_free.patch | 37 +++ 2 files changed, 57 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/03_mpiutil_alloc.patch create mode 1

[PATCH v13 02/13] Import b64dec from gpg-error

2025-05-24 Thread Vladimir Serbinenko
Imported from libgpg-error 1.51 Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 279 + 1 file changed, 279 insertions(+) create mode 100644 grub-core/lib/b64dec.c diff --git a/grub-core/lib/b64dec.c b/grub-core/lib/b64dec.c new file mode

[RFC PATCH v1] kern/efi: Add centralized UEFI error printer

2025-05-24 Thread khaalid cali
This RFC patch introduces a UEFI error message printer that translates UEFI status codes from hexadecimal values into human-readable strings. The idea is inspired by the GNU C Library's "perror()" function, which translates "errno" values into descriptive error messages. Similarly, this implement