Import libgcrypt 1.10.3
PATCH 1/7 Import libgcrypt 1.10.3
We currently use an old version of libcrypt which results in us having fewer ciphers and missing on many other improvements.
---
grub-core/lib/libgcrypt/AUTHORS | 264 +
grub-core/lib/libgcrypt/COPYING | 340 +
grub-core/lib/libgcrypt/COPYING.LIB | 510 +
grub-core/lib/libgcrypt/LICENSES | 287 +
grub-core/lib/libgcrypt/README | 280 +
grub-core/lib/libgcrypt/README.GIT | 49 +
grub-core/lib/libgcrypt/THANKS | 168 +
grub-core/lib/libgcrypt/VERSION | 1 +
grub-core/lib/libgcrypt/cipher/ChangeLog | 3990 ---
grub-core/lib/libgcrypt/cipher/ChangeLog-2011 | 40 +-
grub-core/lib/libgcrypt/cipher/Makefile.am | 271 +-
grub-core/lib/libgcrypt/cipher/Manifest | 73 -
grub-core/lib/libgcrypt/cipher/ac.c | 3301 --
.../lib/libgcrypt/cipher/arcfour-amd64.S | 108 +
grub-core/lib/libgcrypt/cipher/arcfour.c | 87 +-
.../lib/libgcrypt/cipher/asm-common-aarch64.h | 108 +
.../lib/libgcrypt/cipher/asm-common-amd64.h | 193 +
.../lib/libgcrypt/cipher/asm-common-s390x.h | 90 +
.../lib/libgcrypt/cipher/asm-inline-s390x.h | 205 +
.../libgcrypt/cipher/asm-poly1305-aarch64.h | 245 +
.../lib/libgcrypt/cipher/asm-poly1305-amd64.h | 171 +
.../lib/libgcrypt/cipher/asm-poly1305-s390x.h | 140 +
grub-core/lib/libgcrypt/cipher/bithelp.h | 111 +-
grub-core/lib/libgcrypt/cipher/blake2.c | 1045 +
.../lib/libgcrypt/cipher/blake2b-amd64-avx2.S | 300 +
.../lib/libgcrypt/cipher/blake2s-amd64-avx.S | 278 +
.../lib/libgcrypt/cipher/blowfish-amd64.S | 601 +
grub-core/lib/libgcrypt/cipher/blowfish-arm.S | 743 +
grub-core/lib/libgcrypt/cipher/blowfish.c | 847 +-
grub-core/lib/libgcrypt/cipher/bufhelp.h | 458 +-
.../lib/libgcrypt/cipher/camellia-aarch64.S | 586 +
.../cipher/camellia-aesni-avx-amd64.S | 2618 ++
.../cipher/camellia-aesni-avx2-amd64.S | 34 +
.../cipher/camellia-aesni-avx2-amd64.h | 1794 ++
grub-core/lib/libgcrypt/cipher/camellia-arm.S | 626 +
.../lib/libgcrypt/cipher/camellia-glue.c | 1014 +-
.../cipher/camellia-vaes-avx2-amd64.S | 35 +
grub-core/lib/libgcrypt/cipher/camellia.c | 172 +-
grub-core/lib/libgcrypt/cipher/camellia.h | 14 +
grub-core/lib/libgcrypt/cipher/cast5-amd64.S | 663 +
grub-core/lib/libgcrypt/cipher/cast5-arm.S | 728 +
grub-core/lib/libgcrypt/cipher/cast5.c | 822 +-
.../lib/libgcrypt/cipher/chacha20-aarch64.S | 648 +
.../libgcrypt/cipher/chacha20-amd64-avx2.S | 601 +
.../libgcrypt/cipher/chacha20-amd64-ssse3.S | 1012 +
.../libgcrypt/cipher/chacha20-armv7-neon.S | 393 +
grub-core/lib/libgcrypt/cipher/chacha20-ppc.c | 646 +
.../lib/libgcrypt/cipher/chacha20-s390x.S | 1561 +
grub-core/lib/libgcrypt/cipher/chacha20.c | 1306 +
.../lib/libgcrypt/cipher/cipher-aeswrap.c | 380 +
grub-core/lib/libgcrypt/cipher/cipher-cbc.c | 292 +
grub-core/lib/libgcrypt/cipher/cipher-ccm.c | 415 +
grub-core/lib/libgcrypt/cipher/cipher-cfb.c | 317 +
grub-core/lib/libgcrypt/cipher/cipher-cmac.c | 292 +
grub-core/lib/libgcrypt/cipher/cipher-ctr.c | 131 +
grub-core/lib/libgcrypt/cipher/cipher-eax.c | 289 +
.../libgcrypt/cipher/cipher-gcm-armv7-neon.S | 341 +
.../cipher/cipher-gcm-armv8-aarch32-ce.S | 588 +
.../cipher/cipher-gcm-armv8-aarch64-ce.S | 652 +
.../cipher/cipher-gcm-intel-pclmul.c | 914 +
.../lib/libgcrypt/cipher/cipher-gcm-ppc.c | 551 +
.../lib/libgcrypt/cipher/cipher-gcm-siv.c | 664 +
grub-core/lib/libgcrypt/cipher/cipher-gcm.c | 1263 +
.../lib/libgcrypt/cipher/cipher-internal.h | 946 +
grub-core/lib/libgcrypt/cipher/cipher-ocb.c | 762 +
grub-core/lib/libgcrypt/cipher/cipher-ofb.c | 108 +
.../lib/libgcrypt/cipher/cipher-poly1305.c | 379 +
.../lib/libgcrypt/cipher/cipher-selftest.c | 512 +
.../lib/libgcrypt/cipher/cipher-selftest.h | 69 +
grub-core/lib/libgcrypt/cipher/cipher-siv.c | 375 +
grub-core/lib/libgcrypt/cipher/cipher-xts.c | 189 +
grub-core/lib/libgcrypt/cipher/cipher.c | 2621 +-
.../libgcrypt/cipher/crc-armv8-aarch64-ce.S | 497 +
grub-core/lib/libgcrypt/cipher/crc-armv8-ce.c | 229 +
.../lib/libgcrypt/cipher/crc-intel-pclmul.c | 939 +
grub-core/lib/libgcrypt/cipher/crc-ppc.c | 656 +
grub-core/lib/libgcrypt/cipher/crc.c | 188 +-
grub-core/lib/libgcrypt/cipher/des-amd64.S | 1111 +
grub-core/lib/libgcrypt/cipher/des.c | 365 +-
grub-core/lib/libgcrypt/cipher/dsa-common.c | 473 +
grub-core/lib/libgcrypt/cipher/dsa.c | 1207 +-
grub-core/lib/libgcrypt/cipher/ecc-common.h | 143 +
grub-core/lib/libgcrypt/cipher/ecc-curves.c | 1585 +
grub-core/lib/libgcrypt/cipher/ecc-ecdh.c | 127 +
grub-core/lib/libgcrypt/cipher/ecc-ecdsa.c | 297 +
grub-core/lib/libgcrypt/cipher/ecc-eddsa.c | 1079 +
grub-core/lib/libgcrypt/cipher/ecc-gost.c | 218 +
grub-core/lib/libgcrypt/cipher/ecc-misc.c | 469 +
grub-core/lib/libgcrypt/cipher/ecc-sm2.c | 569 +
grub-core/lib/libgcrypt/cipher/ecc.c | 2940 +-
grub-core/lib/libgcrypt/cipher/elgamal.c | 829 +-
grub-core/lib/libgcrypt/cipher/gost-s-box.c | 266 +
grub-core/lib/libgcrypt/cipher/gost-sb.h | 2128 ++
grub-core/lib/libgcrypt/cipher/gost.h | 34 +
grub-core/lib/libgcrypt/cipher/gost28147.c | 553 +
grub-core/lib/libgcrypt/cipher/gostr3411-94.c | 383 +
grub-core/lib/libgcrypt/cipher/hash-common.c | 112 +-
grub-core/lib/libgcrypt/cipher/hash-common.h | 35 +-
grub-core/lib/libgcrypt/cipher/hmac-tests.c | 732 -
grub-core/lib/libgcrypt/cipher/idea.c | 24 +-
grub-core/lib/libgcrypt/cipher/kdf-internal.h | 43 +
grub-core/lib/libgcrypt/cipher/kdf.c | 1074 +-
.../lib/libgcrypt/cipher/keccak-armv7-neon.S | 945 +
grub-core/lib/libgcrypt/cipher/keccak.c | 1561 +
.../lib/libgcrypt/cipher/keccak_permute_32.h | 536 +
.../lib/libgcrypt/cipher/keccak_permute_64.h | 385 +
grub-core/lib/libgcrypt/cipher/mac-cmac.c | 524 +
grub-core/lib/libgcrypt/cipher/mac-gmac.c | 187 +
grub-core/lib/libgcrypt/cipher/mac-hmac.c | 1471 +
grub-core/lib/libgcrypt/cipher/mac-internal.h | 275 +
grub-core/lib/libgcrypt/cipher/mac-poly1305.c | 364 +
grub-core/lib/libgcrypt/cipher/mac.c | 802 +
grub-core/lib/libgcrypt/cipher/md.c | 1517 +-
grub-core/lib/libgcrypt/cipher/md4.c | 167 +-
grub-core/lib/libgcrypt/cipher/md5.c | 173 +-
.../lib/libgcrypt/cipher/poly1305-internal.h | 64 +
.../lib/libgcrypt/cipher/poly1305-s390x.S | 87 +
grub-core/lib/libgcrypt/cipher/poly1305.c | 763 +
grub-core/lib/libgcrypt/cipher/primegen.c | 555 +-
.../lib/libgcrypt/cipher/pubkey-internal.h | 107 +
grub-core/lib/libgcrypt/cipher/pubkey-util.c | 1369 +
grub-core/lib/libgcrypt/cipher/pubkey.c | 4315 +--
grub-core/lib/libgcrypt/cipher/rfc2268.c | 51 +-
.../lib/libgcrypt/cipher/rijndael-aarch64.S | 514 +
.../lib/libgcrypt/cipher/rijndael-aesni.c | 4880 +++
.../lib/libgcrypt/cipher/rijndael-amd64.S | 477 +
grub-core/lib/libgcrypt/cipher/rijndael-arm.S | 581 +
.../cipher/rijndael-armv8-aarch32-ce.S | 1988 ++
.../cipher/rijndael-armv8-aarch64-ce.S | 1921 ++
.../lib/libgcrypt/cipher/rijndael-armv8-ce.c | 431 +
.../lib/libgcrypt/cipher/rijndael-gcm-p10le.s | 1401 +
.../lib/libgcrypt/cipher/rijndael-internal.h | 204 +
.../lib/libgcrypt/cipher/rijndael-p10le.c | 119 +
.../lib/libgcrypt/cipher/rijndael-padlock.c | 110 +
.../libgcrypt/cipher/rijndael-ppc-common.h | 342 +
.../libgcrypt/cipher/rijndael-ppc-functions.h | 2020 ++
grub-core/lib/libgcrypt/cipher/rijndael-ppc.c | 259 +
.../lib/libgcrypt/cipher/rijndael-ppc9le.c | 102 +
.../lib/libgcrypt/cipher/rijndael-s390x.c | 1166 +
.../cipher/rijndael-ssse3-amd64-asm.S | 874 +
.../libgcrypt/cipher/rijndael-ssse3-amd64.c | 743 +
.../lib/libgcrypt/cipher/rijndael-tables.h | 1839 +-
.../cipher/rijndael-vaes-avx2-amd64.S | 3021 ++
.../lib/libgcrypt/cipher/rijndael-vaes.c | 197 +
grub-core/lib/libgcrypt/cipher/rijndael.c | 2611 +-
grub-core/lib/libgcrypt/cipher/rmd160.c | 588 +-
grub-core/lib/libgcrypt/cipher/rsa-common.c | 1115 +
grub-core/lib/libgcrypt/cipher/rsa.c | 1733 +-
.../lib/libgcrypt/cipher/salsa20-amd64.S | 940 +
.../lib/libgcrypt/cipher/salsa20-armv7-neon.S | 899 +
grub-core/lib/libgcrypt/cipher/salsa20.c | 600 +
grub-core/lib/libgcrypt/cipher/scrypt.c | 322 +
grub-core/lib/libgcrypt/cipher/seed.c | 28 +-
.../lib/libgcrypt/cipher/serpent-armv7-neon.S | 1124 +
.../lib/libgcrypt/cipher/serpent-avx2-amd64.S | 1160 +
.../lib/libgcrypt/cipher/serpent-sse2-amd64.S | 1211 +
grub-core/lib/libgcrypt/cipher/serpent.c | 1800 +-
.../lib/libgcrypt/cipher/sha1-armv7-neon.S | 526 +
.../libgcrypt/cipher/sha1-armv8-aarch32-ce.S | 220 +
.../libgcrypt/cipher/sha1-armv8-aarch64-ce.S | 201 +
.../lib/libgcrypt/cipher/sha1-avx-amd64.S | 429 +
.../libgcrypt/cipher/sha1-avx-bmi2-amd64.S | 441 +
.../libgcrypt/cipher/sha1-avx2-bmi2-amd64.S | 573 +
.../lib/libgcrypt/cipher/sha1-intel-shaext.c | 292 +
.../lib/libgcrypt/cipher/sha1-ssse3-amd64.S | 437 +
grub-core/lib/libgcrypt/cipher/sha1.c | 571 +-
grub-core/lib/libgcrypt/cipher/sha1.h | 47 +
.../cipher/sha256-armv8-aarch32-ce.S | 231 +
.../cipher/sha256-armv8-aarch64-ce.S | 215 +
.../lib/libgcrypt/cipher/sha256-avx-amd64.S | 506 +
.../libgcrypt/cipher/sha256-avx2-bmi2-amd64.S | 527 +
.../libgcrypt/cipher/sha256-intel-shaext.c | 363 +
grub-core/lib/libgcrypt/cipher/sha256-ppc.c | 795 +
.../lib/libgcrypt/cipher/sha256-ssse3-amd64.S | 528 +
grub-core/lib/libgcrypt/cipher/sha256.c | 775 +-
grub-core/lib/libgcrypt/cipher/sha512-arm.S | 464 +
.../lib/libgcrypt/cipher/sha512-armv7-neon.S | 452 +
.../lib/libgcrypt/cipher/sha512-avx-amd64.S | 461 +
.../libgcrypt/cipher/sha512-avx2-bmi2-amd64.S | 502 +
grub-core/lib/libgcrypt/cipher/sha512-ppc.c | 969 +
.../lib/libgcrypt/cipher/sha512-ssse3-amd64.S | 467 +
.../lib/libgcrypt/cipher/sha512-ssse3-i386.c | 404 +
grub-core/lib/libgcrypt/cipher/sha512.c | 1232 +-
grub-core/lib/libgcrypt/cipher/sm3-aarch64.S | 657 +
.../lib/libgcrypt/cipher/sm3-avx-bmi2-amd64.S | 553 +
grub-core/lib/libgcrypt/cipher/sm3.c | 537 +
.../libgcrypt/cipher/sm4-aesni-avx-amd64.S | 987 +
.../libgcrypt/cipher/sm4-aesni-avx2-amd64.S | 851 +
grub-core/lib/libgcrypt/cipher/sm4.c | 1251 +
grub-core/lib/libgcrypt/cipher/stribog.c | 1362 +
.../lib/libgcrypt/cipher/test-getrusage.c | 105 -
grub-core/lib/libgcrypt/cipher/tiger.c | 307 +-
.../lib/libgcrypt/cipher/twofish-aarch64.S | 321 +
.../lib/libgcrypt/cipher/twofish-amd64.S | 1184 +
grub-core/lib/libgcrypt/cipher/twofish-arm.S | 363 +
.../lib/libgcrypt/cipher/twofish-avx2-amd64.S | 1048 +
grub-core/lib/libgcrypt/cipher/twofish.c | 893 +-
.../libgcrypt/cipher/whirlpool-sse2-amd64.S | 348 +
grub-core/lib/libgcrypt/cipher/whirlpool.c | 334 +-
grub-core/lib/libgcrypt/compat/Makefile.am | 48 +
grub-core/lib/libgcrypt/compat/clock.c | 36 +
grub-core/lib/libgcrypt/compat/compat.c | 40 +
grub-core/lib/libgcrypt/compat/getpid.c | 29 +
grub-core/lib/libgcrypt/compat/libcompat.h | 37 +
grub-core/lib/libgcrypt/config.h.in | 823 +
grub-core/lib/libgcrypt/configure | 25141 ++++++++++++++++
grub-core/lib/libgcrypt/configure.ac | 3394 +++
grub-core/lib/libgcrypt/mkinstalldirs | 161 +
grub-core/lib/libgcrypt/mpi/ChangeLog-2011 | 17 +-
grub-core/lib/libgcrypt/mpi/Makefile.am | 9 +-
grub-core/lib/libgcrypt/mpi/Manifest | 41 -
.../mpi/{pentium4/sse2 => aarch64}/distfiles | 1 +
.../lib/libgcrypt/mpi/aarch64/mpi-asm-defs.h | 4 +
.../lib/libgcrypt/mpi/aarch64/mpih-add1.S | 74 +
.../lib/libgcrypt/mpi/aarch64/mpih-mul1.S | 99 +
.../lib/libgcrypt/mpi/aarch64/mpih-mul2.S | 111 +
.../lib/libgcrypt/mpi/aarch64/mpih-mul3.S | 124 +
.../lib/libgcrypt/mpi/aarch64/mpih-sub1.S | 74 +
grub-core/lib/libgcrypt/mpi/alpha/README | 4 +-
grub-core/lib/libgcrypt/mpi/amd64/distfiles | 1 +
grub-core/lib/libgcrypt/mpi/amd64/func_abi.h | 34 +
.../lib/libgcrypt/mpi/amd64/mpi-asm-defs.h | 2 +-
grub-core/lib/libgcrypt/mpi/amd64/mpih-add1.S | 4 +-
.../lib/libgcrypt/mpi/amd64/mpih-lshift.S | 47 +-
grub-core/lib/libgcrypt/mpi/amd64/mpih-mul1.S | 3 +-
grub-core/lib/libgcrypt/mpi/amd64/mpih-mul2.S | 46 +-
grub-core/lib/libgcrypt/mpi/amd64/mpih-mul3.S | 4 +-
.../lib/libgcrypt/mpi/amd64/mpih-rshift.S | 49 +-
grub-core/lib/libgcrypt/mpi/amd64/mpih-sub1.S | 3 +-
.../lib/libgcrypt/mpi/{i586 => arm}/distfiles | 6 +-
.../lib/libgcrypt/mpi/arm/mpi-asm-defs.h | 4 +
grub-core/lib/libgcrypt/mpi/arm/mpih-add1.S | 76 +
grub-core/lib/libgcrypt/mpi/arm/mpih-mul1.S | 80 +
grub-core/lib/libgcrypt/mpi/arm/mpih-mul2.S | 94 +
grub-core/lib/libgcrypt/mpi/arm/mpih-mul3.S | 100 +
grub-core/lib/libgcrypt/mpi/arm/mpih-sub1.S | 77 +
.../lib/libgcrypt/mpi/asm-common-aarch64.h | 26 +
.../lib/libgcrypt/mpi/asm-common-amd64.h | 26 +
grub-core/lib/libgcrypt/mpi/config.links | 174 +-
.../{cipher/rmd.h => mpi/ec-ed25519.c} | 35 +-
grub-core/lib/libgcrypt/mpi/ec-hw-s390x.c | 412 +
grub-core/lib/libgcrypt/mpi/ec-inline.h | 1065 +
grub-core/lib/libgcrypt/mpi/ec-internal.h | 49 +
grub-core/lib/libgcrypt/mpi/ec-nist.c | 817 +
grub-core/lib/libgcrypt/mpi/ec.c | 2053 +-
grub-core/lib/libgcrypt/mpi/generic/Manifest | 29 -
grub-core/lib/libgcrypt/mpi/generic/distfiles | 1 -
.../lib/libgcrypt/mpi/generic/mpi-asm-defs.h | 16 +-
.../lib/libgcrypt/mpi/generic/mpih-add1.c | 6 +-
.../lib/libgcrypt/mpi/generic/mpih-lshift.c | 2 +-
.../lib/libgcrypt/mpi/generic/mpih-mul1.c | 4 +-
.../lib/libgcrypt/mpi/generic/mpih-mul2.c | 6 +-
.../lib/libgcrypt/mpi/generic/mpih-mul3.c | 4 +-
.../lib/libgcrypt/mpi/generic/mpih-sub1.c | 4 +-
grub-core/lib/libgcrypt/mpi/i386/Manifest | 28 -
grub-core/lib/libgcrypt/mpi/i386/distfiles | 1 -
grub-core/lib/libgcrypt/mpi/i386/mpih-add1.S | 47 +-
.../lib/libgcrypt/mpi/i386/mpih-lshift.S | 12 +-
grub-core/lib/libgcrypt/mpi/i386/mpih-mul1.S | 12 +-
grub-core/lib/libgcrypt/mpi/i386/mpih-mul2.S | 12 +-
grub-core/lib/libgcrypt/mpi/i386/mpih-mul3.S | 12 +-
.../lib/libgcrypt/mpi/i386/mpih-rshift.S | 14 +-
grub-core/lib/libgcrypt/mpi/i386/mpih-sub1.S | 47 +-
grub-core/lib/libgcrypt/mpi/i386/syntax.h | 32 +-
grub-core/lib/libgcrypt/mpi/i586/Manifest | 27 -
grub-core/lib/libgcrypt/mpi/i586/README | 26 -
grub-core/lib/libgcrypt/mpi/i586/mpih-add1.S | 135 -
.../lib/libgcrypt/mpi/i586/mpih-lshift.S | 229 -
grub-core/lib/libgcrypt/mpi/i586/mpih-mul1.S | 89 -
grub-core/lib/libgcrypt/mpi/i586/mpih-mul2.S | 93 -
grub-core/lib/libgcrypt/mpi/i586/mpih-mul3.S | 93 -
.../lib/libgcrypt/mpi/i586/mpih-rshift.S | 228 -
grub-core/lib/libgcrypt/mpi/i586/mpih-sub1.S | 142 -
grub-core/lib/libgcrypt/mpi/longlong.h | 686 +-
grub-core/lib/libgcrypt/mpi/m68k/Manifest | 25 -
grub-core/lib/libgcrypt/mpi/m68k/distfiles | 1 -
.../lib/libgcrypt/mpi/m68k/mc68020/Manifest | 23 -
.../lib/libgcrypt/mpi/m68k/mc68020/distfiles | 1 -
grub-core/lib/libgcrypt/mpi/m68k/syntax.h | 2 +-
grub-core/lib/libgcrypt/mpi/mips3/Manifest | 28 -
grub-core/lib/libgcrypt/mpi/mips3/README | 2 +-
grub-core/lib/libgcrypt/mpi/mips3/distfiles | 1 -
grub-core/lib/libgcrypt/mpi/mpi-add.c | 23 +-
grub-core/lib/libgcrypt/mpi/mpi-bit.c | 119 +-
grub-core/lib/libgcrypt/mpi/mpi-cmp.c | 41 +-
grub-core/lib/libgcrypt/mpi/mpi-div.c | 19 +-
grub-core/lib/libgcrypt/mpi/mpi-gcd.c | 11 +-
grub-core/lib/libgcrypt/mpi/mpi-internal.h | 54 +-
grub-core/lib/libgcrypt/mpi/mpi-inv.c | 312 +-
grub-core/lib/libgcrypt/mpi/mpi-mod.c | 16 +-
grub-core/lib/libgcrypt/mpi/mpi-mpow.c | 8 +-
grub-core/lib/libgcrypt/mpi/mpi-mul.c | 12 +-
grub-core/lib/libgcrypt/mpi/mpi-pow.c | 458 +-
grub-core/lib/libgcrypt/mpi/mpi-scan.c | 132 +-
grub-core/lib/libgcrypt/mpi/mpicoder.c | 763 +-
grub-core/lib/libgcrypt/mpi/mpih-const-time.c | 240 +
grub-core/lib/libgcrypt/mpi/mpih-div.c | 10 +-
grub-core/lib/libgcrypt/mpi/mpih-mul.c | 19 +-
grub-core/lib/libgcrypt/mpi/mpiutil.c | 481 +-
grub-core/lib/libgcrypt/mpi/pa7100/Manifest | 22 -
grub-core/lib/libgcrypt/mpi/pa7100/distfiles | 1 -
grub-core/lib/libgcrypt/mpi/pentium4/README | 115 -
.../lib/libgcrypt/mpi/pentium4/distfiles | 3 -
.../lib/libgcrypt/mpi/pentium4/mmx/distfiles | 2 -
.../libgcrypt/mpi/pentium4/mmx/mpih-lshift.S | 457 -
.../libgcrypt/mpi/pentium4/mmx/mpih-rshift.S | 453 -
.../libgcrypt/mpi/pentium4/sse2/mpih-add1.S | 91 -
.../libgcrypt/mpi/pentium4/sse2/mpih-mul1.S | 96 -
.../libgcrypt/mpi/pentium4/sse2/mpih-mul2.S | 136 -
.../libgcrypt/mpi/pentium4/sse2/mpih-mul3.S | 127 -
.../libgcrypt/mpi/pentium4/sse2/mpih-sub1.S | 112 -
grub-core/lib/libgcrypt/mpi/power/Manifest | 27 -
grub-core/lib/libgcrypt/mpi/power/distfiles | 1 -
.../lib/libgcrypt/mpi/powerpc32/Manifest | 28 -
.../lib/libgcrypt/mpi/powerpc32/distfiles | 1 -
grub-core/lib/libgcrypt/mpi/sparc32/Manifest | 24 -
grub-core/lib/libgcrypt/mpi/sparc32/distfiles | 1 -
.../lib/libgcrypt/mpi/sparc32v8/Manifest | 23 -
.../lib/libgcrypt/mpi/sparc32v8/distfiles | 1 -
.../lib/libgcrypt/mpi/supersparc/Manifest | 21 -
.../lib/libgcrypt/mpi/supersparc/distfiles | 1 -
grub-core/lib/libgcrypt/src/ChangeLog-2011 | 75 +-
grub-core/lib/libgcrypt/src/Makefile.am | 87 +-
grub-core/lib/libgcrypt/src/Manifest | 58 -
grub-core/lib/libgcrypt/src/ath.c | 344 -
grub-core/lib/libgcrypt/src/ath.h | 147 -
grub-core/lib/libgcrypt/src/cipher-proto.h | 248 +-
grub-core/lib/libgcrypt/src/cipher.h | 150 +-
grub-core/lib/libgcrypt/src/const-time.c | 88 +
grub-core/lib/libgcrypt/src/const-time.h | 167 +
grub-core/lib/libgcrypt/src/context.c | 139 +
grub-core/lib/libgcrypt/src/context.h | 32 +
grub-core/lib/libgcrypt/src/dumpsexp.c | 24 +-
grub-core/lib/libgcrypt/src/ec-context.h | 107 +
grub-core/lib/libgcrypt/src/fips.c | 802 +-
grub-core/lib/libgcrypt/src/g10lib.h | 265 +-
grub-core/lib/libgcrypt/src/gcrypt-int.h | 563 +
grub-core/lib/libgcrypt/src/gcrypt-module.h | 240 -
grub-core/lib/libgcrypt/src/gcrypt-testapi.h | 69 +
grub-core/lib/libgcrypt/src/gcrypt.h.in | 1173 +-
.../lib/libgcrypt/src/gen-note-integrity.sh | 123 +
grub-core/lib/libgcrypt/src/global.c | 890 +-
grub-core/lib/libgcrypt/src/hmac256.c | 85 +-
grub-core/lib/libgcrypt/src/hwf-arm.c | 393 +
grub-core/lib/libgcrypt/src/hwf-common.h | 28 +
grub-core/lib/libgcrypt/src/hwf-ppc.c | 247 +
grub-core/lib/libgcrypt/src/hwf-s390x.c | 231 +
grub-core/lib/libgcrypt/src/hwf-x86.c | 414 +
grub-core/lib/libgcrypt/src/hwfeatures.c | 314 +-
.../lib/libgcrypt/src/libgcrypt-config.in | 16 +-
grub-core/lib/libgcrypt/src/libgcrypt.def | 154 +-
grub-core/lib/libgcrypt/src/libgcrypt.m4 | 96 +-
grub-core/lib/libgcrypt/src/libgcrypt.pc.in | 18 +
grub-core/lib/libgcrypt/src/libgcrypt.vers | 76 +-
grub-core/lib/libgcrypt/src/misc.c | 345 +-
grub-core/lib/libgcrypt/src/module.c | 212 -
grub-core/lib/libgcrypt/src/mpi.h | 215 +-
grub-core/lib/libgcrypt/src/mpicalc.c | 648 +
grub-core/lib/libgcrypt/src/secmem.c | 616 +-
grub-core/lib/libgcrypt/src/secmem.h | 11 +-
grub-core/lib/libgcrypt/src/sexp.c | 1364 +-
grub-core/lib/libgcrypt/src/stdmem.c | 44 +-
grub-core/lib/libgcrypt/src/stdmem.h | 4 +-
grub-core/lib/libgcrypt/src/types.h | 154 +-
grub-core/lib/libgcrypt/src/versioninfo.rc.in | 2 +-
grub-core/lib/libgcrypt/src/visibility.c | 951 +-
grub-core/lib/libgcrypt/src/visibility.h | 1220 +-
367 files changed, 164876 insertions(+), 31107 deletions(-)
create mode 100644 grub-core/lib/libgcrypt/AUTHORS
create mode 100644 grub-core/lib/libgcrypt/COPYING
create mode 100644 grub-core/lib/libgcrypt/COPYING.LIB
create mode 100644 grub-core/lib/libgcrypt/LICENSES
create mode 100644 grub-core/lib/libgcrypt/README
create mode 100644 grub-core/lib/libgcrypt/README.GIT
create mode 100644 grub-core/lib/libgcrypt/THANKS
create mode 100644 grub-core/lib/libgcrypt/VERSION
delete mode 100644 grub-core/lib/libgcrypt/cipher/ChangeLog
delete mode 100644 grub-core/lib/libgcrypt/cipher/Manifest
delete mode 100644 grub-core/lib/libgcrypt/cipher/ac.c
create mode 100644 grub-core/lib/libgcrypt/cipher/arcfour-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/asm-common-aarch64.h
create mode 100644 grub-core/lib/libgcrypt/cipher/asm-common-amd64.h
create mode 100644 grub-core/lib/libgcrypt/cipher/asm-common-s390x.h
create mode 100644 grub-core/lib/libgcrypt/cipher/asm-inline-s390x.h
create mode 100644 grub-core/lib/libgcrypt/cipher/asm-poly1305-aarch64.h
create mode 100644 grub-core/lib/libgcrypt/cipher/asm-poly1305-amd64.h
create mode 100644 grub-core/lib/libgcrypt/cipher/asm-poly1305-s390x.h
create mode 100644 grub-core/lib/libgcrypt/cipher/blake2.c
create mode 100644 grub-core/lib/libgcrypt/cipher/blake2b-amd64-avx2.S
create mode 100644 grub-core/lib/libgcrypt/cipher/blake2s-amd64-avx.S
create mode 100644 grub-core/lib/libgcrypt/cipher/blowfish-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/blowfish-arm.S
create mode 100644 grub-core/lib/libgcrypt/cipher/camellia-aarch64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/camellia-aesni-avx-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/camellia-aesni-avx2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/camellia-aesni-avx2-amd64.h
create mode 100644 grub-core/lib/libgcrypt/cipher/camellia-arm.S
create mode 100644 grub-core/lib/libgcrypt/cipher/camellia-vaes-avx2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/cast5-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/cast5-arm.S
create mode 100644 grub-core/lib/libgcrypt/cipher/chacha20-aarch64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/chacha20-amd64-avx2.S
create mode 100644 grub-core/lib/libgcrypt/cipher/chacha20-amd64-ssse3.S
create mode 100644 grub-core/lib/libgcrypt/cipher/chacha20-armv7-neon.S
create mode 100644 grub-core/lib/libgcrypt/cipher/chacha20-ppc.c
create mode 100644 grub-core/lib/libgcrypt/cipher/chacha20-s390x.S
create mode 100644 grub-core/lib/libgcrypt/cipher/chacha20.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-aeswrap.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-cbc.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-ccm.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-cfb.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-cmac.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-ctr.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-eax.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-gcm-armv7-neon.S
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-gcm-armv8-aarch32-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-gcm-armv8-aarch64-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-gcm-intel-pclmul.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-gcm-ppc.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-gcm-siv.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-gcm.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-internal.h
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-ocb.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-ofb.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-poly1305.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-selftest.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-selftest.h
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-siv.c
create mode 100644 grub-core/lib/libgcrypt/cipher/cipher-xts.c
create mode 100644 grub-core/lib/libgcrypt/cipher/crc-armv8-aarch64-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/crc-armv8-ce.c
create mode 100644 grub-core/lib/libgcrypt/cipher/crc-intel-pclmul.c
create mode 100644 grub-core/lib/libgcrypt/cipher/crc-ppc.c
create mode 100644 grub-core/lib/libgcrypt/cipher/des-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/dsa-common.c
create mode 100644 grub-core/lib/libgcrypt/cipher/ecc-common.h
create mode 100644 grub-core/lib/libgcrypt/cipher/ecc-curves.c
create mode 100644 grub-core/lib/libgcrypt/cipher/ecc-ecdh.c
create mode 100644 grub-core/lib/libgcrypt/cipher/ecc-ecdsa.c
create mode 100644 grub-core/lib/libgcrypt/cipher/ecc-eddsa.c
create mode 100644 grub-core/lib/libgcrypt/cipher/ecc-gost.c
create mode 100644 grub-core/lib/libgcrypt/cipher/ecc-misc.c
create mode 100644 grub-core/lib/libgcrypt/cipher/ecc-sm2.c
create mode 100644 grub-core/lib/libgcrypt/cipher/gost-s-box.c
create mode 100644 grub-core/lib/libgcrypt/cipher/gost-sb.h
create mode 100644 grub-core/lib/libgcrypt/cipher/gost.h
create mode 100644 grub-core/lib/libgcrypt/cipher/gost28147.c
create mode 100644 grub-core/lib/libgcrypt/cipher/gostr3411-94.c
delete mode 100644 grub-core/lib/libgcrypt/cipher/hmac-tests.c
create mode 100644 grub-core/lib/libgcrypt/cipher/kdf-internal.h
create mode 100644 grub-core/lib/libgcrypt/cipher/keccak-armv7-neon.S
create mode 100644 grub-core/lib/libgcrypt/cipher/keccak.c
create mode 100644 grub-core/lib/libgcrypt/cipher/keccak_permute_32.h
create mode 100644 grub-core/lib/libgcrypt/cipher/keccak_permute_64.h
create mode 100644 grub-core/lib/libgcrypt/cipher/mac-cmac.c
create mode 100644 grub-core/lib/libgcrypt/cipher/mac-gmac.c
create mode 100644 grub-core/lib/libgcrypt/cipher/mac-hmac.c
create mode 100644 grub-core/lib/libgcrypt/cipher/mac-internal.h
create mode 100644 grub-core/lib/libgcrypt/cipher/mac-poly1305.c
create mode 100644 grub-core/lib/libgcrypt/cipher/mac.c
create mode 100644 grub-core/lib/libgcrypt/cipher/poly1305-internal.h
create mode 100644 grub-core/lib/libgcrypt/cipher/poly1305-s390x.S
create mode 100644 grub-core/lib/libgcrypt/cipher/poly1305.c
create mode 100644 grub-core/lib/libgcrypt/cipher/pubkey-internal.h
create mode 100644 grub-core/lib/libgcrypt/cipher/pubkey-util.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-aarch64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-aesni.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-arm.S
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-armv8-aarch32-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-armv8-aarch64-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-armv8-ce.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-gcm-p10le.s
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-internal.h
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-p10le.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-padlock.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-ppc-common.h
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-ppc-functions.h
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-ppc.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-ppc9le.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-s390x.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-ssse3-amd64-asm.S
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-ssse3-amd64.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-vaes-avx2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/rijndael-vaes.c
create mode 100644 grub-core/lib/libgcrypt/cipher/rsa-common.c
create mode 100644 grub-core/lib/libgcrypt/cipher/salsa20-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/salsa20-armv7-neon.S
create mode 100644 grub-core/lib/libgcrypt/cipher/salsa20.c
create mode 100644 grub-core/lib/libgcrypt/cipher/scrypt.c
create mode 100644 grub-core/lib/libgcrypt/cipher/serpent-armv7-neon.S
create mode 100644 grub-core/lib/libgcrypt/cipher/serpent-avx2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/serpent-sse2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1-armv7-neon.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1-armv8-aarch32-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1-armv8-aarch64-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1-avx-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1-avx-bmi2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1-avx2-bmi2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1-intel-shaext.c
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1-ssse3-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha1.h
create mode 100644 grub-core/lib/libgcrypt/cipher/sha256-armv8-aarch32-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha256-armv8-aarch64-ce.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha256-avx-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha256-avx2-bmi2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha256-intel-shaext.c
create mode 100644 grub-core/lib/libgcrypt/cipher/sha256-ppc.c
create mode 100644 grub-core/lib/libgcrypt/cipher/sha256-ssse3-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha512-arm.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha512-armv7-neon.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha512-avx-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha512-avx2-bmi2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha512-ppc.c
create mode 100644 grub-core/lib/libgcrypt/cipher/sha512-ssse3-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sha512-ssse3-i386.c
create mode 100644 grub-core/lib/libgcrypt/cipher/sm3-aarch64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sm3-avx-bmi2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sm3.c
create mode 100644 grub-core/lib/libgcrypt/cipher/sm4-aesni-avx-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sm4-aesni-avx2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/sm4.c
create mode 100644 grub-core/lib/libgcrypt/cipher/stribog.c
delete mode 100644 grub-core/lib/libgcrypt/cipher/test-getrusage.c
create mode 100644 grub-core/lib/libgcrypt/cipher/twofish-aarch64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/twofish-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/twofish-arm.S
create mode 100644 grub-core/lib/libgcrypt/cipher/twofish-avx2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/cipher/whirlpool-sse2-amd64.S
create mode 100644 grub-core/lib/libgcrypt/compat/Makefile.am
create mode 100644 grub-core/lib/libgcrypt/compat/clock.c
create mode 100644 grub-core/lib/libgcrypt/compat/compat.c
create mode 100644 grub-core/lib/libgcrypt/compat/getpid.c
create mode 100644 grub-core/lib/libgcrypt/compat/libcompat.h
create mode 100644 grub-core/lib/libgcrypt/config.h.in
create mode 100755 grub-core/lib/libgcrypt/configure
create mode 100644 grub-core/lib/libgcrypt/configure.ac
create mode 100755 grub-core/lib/libgcrypt/mkinstalldirs
delete mode 100644 grub-core/lib/libgcrypt/mpi/Manifest
rename grub-core/lib/libgcrypt/mpi/{pentium4/sse2 => aarch64}/distfiles (80%)
create mode 100644 grub-core/lib/libgcrypt/mpi/aarch64/mpi-asm-defs.h
create mode 100644 grub-core/lib/libgcrypt/mpi/aarch64/mpih-add1.S
create mode 100644 grub-core/lib/libgcrypt/mpi/aarch64/mpih-mul1.S
create mode 100644 grub-core/lib/libgcrypt/mpi/aarch64/mpih-mul2.S
create mode 100644 grub-core/lib/libgcrypt/mpi/aarch64/mpih-mul3.S
create mode 100644 grub-core/lib/libgcrypt/mpi/aarch64/mpih-sub1.S
create mode 100644 grub-core/lib/libgcrypt/mpi/amd64/func_abi.h
rename grub-core/lib/libgcrypt/mpi/{i586 => arm}/distfiles (57%)
create mode 100644 grub-core/lib/libgcrypt/mpi/arm/mpi-asm-defs.h
create mode 100644 grub-core/lib/libgcrypt/mpi/arm/mpih-add1.S
create mode 100644 grub-core/lib/libgcrypt/mpi/arm/mpih-mul1.S
create mode 100644 grub-core/lib/libgcrypt/mpi/arm/mpih-mul2.S
create mode 100644 grub-core/lib/libgcrypt/mpi/arm/mpih-mul3.S
create mode 100644 grub-core/lib/libgcrypt/mpi/arm/mpih-sub1.S
create mode 100644 grub-core/lib/libgcrypt/mpi/asm-common-aarch64.h
create mode 100644 grub-core/lib/libgcrypt/mpi/asm-common-amd64.h
rename grub-core/lib/libgcrypt/{cipher/rmd.h => mpi/ec-ed25519.c} (52%)
create mode 100644 grub-core/lib/libgcrypt/mpi/ec-hw-s390x.c
create mode 100644 grub-core/lib/libgcrypt/mpi/ec-inline.h
create mode 100644 grub-core/lib/libgcrypt/mpi/ec-internal.h
create mode 100644 grub-core/lib/libgcrypt/mpi/ec-nist.c
delete mode 100644 grub-core/lib/libgcrypt/mpi/generic/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/i386/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/README
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/mpih-add1.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/mpih-lshift.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/mpih-mul1.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/mpih-mul2.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/mpih-mul3.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/mpih-rshift.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/i586/mpih-sub1.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/m68k/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/m68k/mc68020/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/mips3/Manifest
create mode 100644 grub-core/lib/libgcrypt/mpi/mpih-const-time.c
delete mode 100644 grub-core/lib/libgcrypt/mpi/pa7100/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/README
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/distfiles
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/mmx/distfiles
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/mmx/mpih-lshift.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/mmx/mpih-rshift.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-add1.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-mul1.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-mul2.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-mul3.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-sub1.S
delete mode 100644 grub-core/lib/libgcrypt/mpi/power/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/powerpc32/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/sparc32/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/sparc32v8/Manifest
delete mode 100644 grub-core/lib/libgcrypt/mpi/supersparc/Manifest
delete mode 100644 grub-core/lib/libgcrypt/src/Manifest
delete mode 100644 grub-core/lib/libgcrypt/src/ath.c
delete mode 100644 grub-core/lib/libgcrypt/src/ath.h
create mode 100644 grub-core/lib/libgcrypt/src/const-time.c
create mode 100644 grub-core/lib/libgcrypt/src/const-time.h
create mode 100644 grub-core/lib/libgcrypt/src/context.c
create mode 100644 grub-core/lib/libgcrypt/src/context.h
create mode 100644 grub-core/lib/libgcrypt/src/ec-context.h
create mode 100644 grub-core/lib/libgcrypt/src/gcrypt-int.h
delete mode 100644 grub-core/lib/libgcrypt/src/gcrypt-module.h
create mode 100644 grub-core/lib/libgcrypt/src/gcrypt-testapi.h
create mode 100755 grub-core/lib/libgcrypt/src/gen-note-integrity.sh
create mode 100644 grub-core/lib/libgcrypt/src/hwf-arm.c
create mode 100644 grub-core/lib/libgcrypt/src/hwf-common.h
create mode 100644 grub-core/lib/libgcrypt/src/hwf-ppc.c
create mode 100644 grub-core/lib/libgcrypt/src/hwf-s390x.c
create mode 100644 grub-core/lib/libgcrypt/src/hwf-x86.c
create mode 100644 grub-core/lib/libgcrypt/src/libgcrypt.pc.in
delete mode 100644 grub-core/lib/libgcrypt/src/module.c
create mode 100644 grub-core/lib/libgcrypt/src/mpicalc.cgrub-core/lib/libgcrypt/AUTHORS new file +264 -0
@@ -0,0 +1,264 @@ +Library: Libgcrypt +Homepage: https://www.gnupg.org/related_software/libgcrypt/ +Download: https://ftp.gnupg.org/ftp/gcrypt/libgcrypt/ + ftp://ftp.gnupg.org/gcrypt/libgcrypt/ +Repository: git://git.gnupg.org/libgcrypt.git +Maintainer: Werner Koch <[email protected]> +Bug reports: https://bugs.gnupg.org +Security related bug reports: <[email protected]> +End-of-life: TBD +License (library): LGPLv2.1+ +License (manual and tools): GPLv2+ + + +Libgcrypt is free software. See the files COPYING.LIB and COPYING for +copying conditions, and LICENSES for notices about a few contributions +that require these additional notices to be distributed. License +copyright years may be listed using range notation, e.g., 2000-2013, +indicating that every year in the range, inclusive, is a copyrightable +year that would otherwise be listed individually. + + +List of Copyright holders +========================= + + Copyright (C) 1989,1991-2018 Free Software Foundation, Inc. + Copyright (C) 1994 X Consortium + Copyright (C) 1996 L. Peter Deutsch + Copyright (C) 1997 Werner Koch + Copyright (C) 1998 The Internet Society + Copyright (C) 1996-1999 Peter Gutmann, Paul Kendall, and Chris Wedgwood + Copyright (C) 1996-2006 Peter Gutmann, Matt Thomlinson and Blake Coverett + Copyright (C) 2003 Nikos Mavroyanopoulos + Copyright (c) 2006 CRYPTOGAMS + Copyright (C) 2006-2007 NTT (Nippon Telegraph and Telephone Corporation) + Copyright (C) 2012-2023 g10 Code GmbH + Copyright (C) 2012 Simon Josefsson, Niels Möller + Copyright (c) 2012 Intel Corporation + Copyright (C) 2013 Christian Grothoff + Copyright (C) 2013-2022 Jussi Kivilinna + Copyright (C) 2013-2014 Dmitry Eremin-Solenikov + Copyright (C) 2014 Stephan Mueller + Copyright (C) 2017 Jia Zhang + Copyright (C) 2018 Bundesamt für Sicherheit in der Informationstechnik + Copyright (C) 2020 Alibaba Group. + Copyright (C) 2020 Tianjia Zhang + + +Authors with a FSF copyright assignment +======================================= + +LIBGCRYPT Werner Koch 2001-06-07 +Assigns past and future changes. +Assignment for future changes terminated on 2012-12-04. [email protected] +Designed and implemented Libgcrypt. + +GNUPG Matthew Skala 1998-08-10 +Disclaims changes. [email protected] +Wrote cipher/twofish.c. + +GNUPG Natural Resources Canada 1998-08-11 +Disclaims changes by Matthew Skala. + +GNUPG Michael Roth Germany 1998-09-17 +Assigns changes. [email protected] +Wrote cipher/des.c. +Changes and bug fixes all over the place. + +GNUPG Niklas Hernaeus 1998-09-18 +Disclaims changes. [email protected] +Weak key patches. + +GNUPG Rémi Guyomarch 1999-05-25 +Assigns past and future changes. (g10/compress.c, g10/encr-data.c, +g10/free-packet.c, g10/mdfilter.c, g10/plaintext.c, util/iobuf.c) [email protected] + +ANY g10 Code GmbH 2001-06-07 +Assignment for future changes terminated on 2012-12-04. +Code marked with ChangeLog entries of g10 Code employees. + +LIBGCRYPT Timo Schulz 2001-08-31 +Assigns past and future changes. [email protected] + +LIBGCRYPT Simon Josefsson 2002-10-25 +Assigns past and future changes to FSF (cipher/{md4,crc}.c, CTR mode, +CTS/MAC flags, self test improvements) [email protected] + +LIBGCRYPT Moritz Schulte 2003-04-17 +Assigns past and future changes. [email protected] + +GNUTLS Nikolaos Mavrogiannopoulos 2003-11-22 [email protected] +Original code for cipher/rfc2268.c. + +LIBGCRYPT The Written Word 2005-04-15 +Assigns past and future changes. (new: src/libgcrypt.pc.in, +src/Makefile.am, src/secmem.c, mpi/hppa1.1/mpih-mul3.S, +mpi/hppa1.1/udiv-qrnnd.S, mpi/hppa1.1/mpih-mul2.S, +mpi/hppa1.1/mpih-mul1.S, mpi/Makefile.am, tests/prime.c, +tests/register.c, tests/ac.c, tests/basic.c, tests/tsexp.c, +tests/keygen.c, tests/pubkey.c, configure.ac, acinclude.m4) + +LIBGCRYPT Brad Hards 2006-02-09 +Assigns Past and Future Changes [email protected] +(Added OFB mode. Changed cipher/cipher.c, test/basic.c doc/gcrypt.tex. + added SHA-224, changed cipher/sha256.c, added HMAC tests.) + +LIBGCRYPT Hye-Shik Chang 2006-09-07 +Assigns Past and Future Changes [email protected] +(SEED cipher) + +LIBGCRYPT Werner Dittmann 2009-05-20 +Assigns Past and Future Changes [email protected] +(mpi/amd64, tests/mpitests.c) + +GNUPG David Shaw +Assigns past and future changes. [email protected] +(cipher/camellia-glue.c and related stuff) + +LIBGCRYPT Andrey Jivsov 2010-12-09 +Assigns Past and Future Changes [email protected] +(cipher/ecc.c and related files) + +LIBGCRYPT Ulrich Müller 2012-02-15 +Assigns Past and Future Changes [email protected] +(Changes to cipher/idea.c and related files) + +LIBGCRYPT Vladimir Serbinenko 2012-04-26 +Assigns Past and Future Changes [email protected] +(cipher/serpent.c) + + +Authors with a DCO +================== + +Andrei Scherer <[email protected]> +2014-08-22:[email protected]: + +Christian Aistleitner <[email protected]> +2013-02-26:[email protected]: + +Christian Grothoff <[email protected]> +2013-03-21:[email protected]: + +Clemens Lang <[email protected]> +2022-02-10:[email protected]: + +Danny Tsen <[email protected]> +2021-12-20:OF85D11C2F.7A339D7D-ON002587B1.0042A81E-002587B1.0042B94D@ibm.com + +Dmitry Baryshkov <[email protected]> +Dmitry Eremin-Solenikov <[email protected]> +2013-07-13:[email protected]: + +Dmitry Kasatkin <[email protected]> +2012-12-14:[email protected]: + +H.J. Lu <[email protected]> +2020-01-19:[email protected]: + +Jia Zhang <[email protected]> +2017-10-17:[email protected]: + +Jérémie Courrèges-Anglas <[email protected]> +2016-05-26:[email protected]: + +Jussi Kivilinna <[email protected]> +2012-11-15:[email protected]: + +Jussi Kivilinna <[email protected]> +2013-05-06:[email protected]: + +Markus Teich <markus dot teich at stusta dot mhn dot de> +2014-10-08:20141008180509.GA2770@trolle: + +Martin Storsjö <[email protected]> +2018-03-28:[email protected]: + +Mathias L. Baumann <mathias.baumann at sociomantic.com> +2017-01-30:[email protected]: + +Milan Broz <[email protected]> +2014-01-13:[email protected]: + +Paul Wolneykien <[email protected]> +2019-11-19:[email protected]: + +Peter Wu <[email protected]> +2015-07-22:20150722191325.GA8113@al: + +Rafaël Carré <[email protected]> +2012-04-20:[email protected]: + +Sergey V. <[email protected]> +2013-11-07:2066221.5IYa7Yq760@darkstar: + +Shawn Landden <[email protected]> +2019-07-09:[email protected]: + +Stephan Mueller <[email protected]> +2014-08-22:[email protected]: + +Tianjia Zhang <[email protected]> +2020-01-08:[email protected]: + +Tomáš Mráz <[email protected]> +2012-04-16:[email protected]: + +Vitezslav Cizek <[email protected]> +2015-11-05:[email protected]: + +Werner Koch <[email protected]> (g10 Code GmbH) +2012-12-05:[email protected]: + + +More credits +============ + +Libgcrypt used to be part of GnuPG but has been taken out into its own +package on 2000-12-21. + +Most of the stuff in mpi has been taken from an old GMP library +version by Torbjorn Granlund <[email protected]>. + +The files cipher/rndunix.c and cipher/rndw32.c are based on those +files from Cryptlib. Copyright Peter Gutmann, Paul Kendall, and Chris +Wedgwood 1996-1999. + +The ECC code cipher/ecc.c was based on code by Sergi Blanch i Torne, +sergi at calcurco dot org. + +The implementation of the Camellia cipher has been been taken from the +original NTT provided GPL source. + +The CAVS testing program tests/cavs_driver.pl is not to be considered +a part of libgcrypt proper. We distribute it merely for convenience. +It has a permissive license and is copyrighted by atsec information +security corporation. See the file for details. + +The file salsa20.c is based on D.J. Bernstein's public domain code and +taken from Nettle. Copyright 2012 Simon Josefsson and Niels Möller. + + + This file is free software; as a special exception the author gives + unlimited permission to copy and/or distribute it, with or without + modifications, as long as this notice is preserved. + + This file is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY, to the extent permitted by law; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
grub-core/lib/libgcrypt/COPYING new file +340 -0
340 lines not on this page · raw message
grub-core/lib/libgcrypt/COPYING.LIB new file +510 -0
510 lines not on this page · raw message
grub-core/lib/libgcrypt/LICENSES new file +287 -0
287 lines not on this page · raw message
grub-core/lib/libgcrypt/README new file +280 -0
280 lines not on this page · raw message
grub-core/lib/libgcrypt/README.GIT new file +49 -0
49 lines not on this page · raw message
grub-core/lib/libgcrypt/THANKS new file +168 -0
168 lines not on this page · raw message
grub-core/lib/libgcrypt/VERSION new file +1 -0
@@ -0,0 +1 @@ +1.10.3
grub-core/lib/libgcrypt/cipher/ChangeLog deleted +0 -3990
1,101 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ChangeLog-2011 +36 -4
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/cipher/Makefile.am +232 -39
271 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/Manifest deleted +0 -73
73 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ac.c deleted +0 -3301
3,301 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/arcfour-amd64.S new file +108 -0
108 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/arcfour.c +74 -13
87 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/asm-common-aarch64.h new file +108 -0
108 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/asm-common-amd64.h new file +193 -0
193 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/asm-common-s390x.h new file +90 -0
90 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/asm-inline-s390x.h new file +205 -0
205 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/asm-poly1305-aarch64.h new file +245 -0
245 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/asm-poly1305-amd64.h new file +171 -0
171 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/asm-poly1305-s390x.h new file +140 -0
140 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/bithelp.h +90 -21
111 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/blake2.c new file +1045 -0
1,045 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/blake2b-amd64-avx2.S new file +300 -0
300 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/blake2s-amd64-avx.S new file +278 -0
278 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/blowfish-amd64.S new file +601 -0
601 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/blowfish-arm.S new file +743 -0
743 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/blowfish.c +692 -155
847 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/bufhelp.h +199 -259
458 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/camellia-aarch64.S new file +586 -0
586 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/camellia-aesni-avx-amd64.S new file +2618 -0
2,618 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/camellia-aesni-avx2-amd64.S new file +34 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/cipher/camellia-aesni-avx2-amd64.h new file +1794 -0
1,794 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/camellia-arm.S new file +626 -0
626 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/camellia-glue.c +978 -36
1,014 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/camellia-vaes-avx2-amd64.S new file +35 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/cipher/camellia.c +62 -110
172 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/camellia.h +14 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/cipher/cast5-amd64.S new file +663 -0
663 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cast5-arm.S new file +728 -0
728 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cast5.c +720 -102
822 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/chacha20-aarch64.S new file +648 -0
648 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/chacha20-amd64-avx2.S new file +601 -0
601 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/chacha20-amd64-ssse3.S new file +1012 -0
1,012 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/chacha20-armv7-neon.S new file +393 -0
393 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/chacha20-ppc.c new file +646 -0
646 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/chacha20-s390x.S new file +1561 -0
1,561 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/chacha20.c new file +1306 -0
1,306 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-aeswrap.c new file +380 -0
380 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-cbc.c new file +292 -0
292 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-ccm.c new file +415 -0
415 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-cfb.c new file +317 -0
317 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-cmac.c new file +292 -0
292 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-ctr.c new file +131 -0
131 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-eax.c new file +289 -0
289 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-gcm-armv7-neon.S new file +341 -0
341 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-gcm-armv8-aarch32-ce.S new file +588 -0
588 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-gcm-armv8-aarch64-ce.S new file +652 -0
652 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-gcm-intel-pclmul.c new file +914 -0
914 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-gcm-ppc.c new file +551 -0
551 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-gcm-siv.c new file +664 -0
664 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-gcm.c new file +1263 -0
1,263 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-internal.h new file +946 -0
946 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-ocb.c new file +762 -0
762 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-ofb.c new file +108 -0
108 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-poly1305.c new file +379 -0
379 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-selftest.c new file +512 -0
512 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-selftest.h new file +69 -0
69 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-siv.c new file +375 -0
375 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher-xts.c new file +189 -0
189 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/cipher.c +1161 -1460
2,621 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/crc-armv8-aarch64-ce.S new file +497 -0
497 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/crc-armv8-ce.c new file +229 -0
229 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/crc-intel-pclmul.c new file +939 -0
939 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/crc-ppc.c new file +656 -0
656 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/crc.c +175 -13
188 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/des-amd64.S new file +1111 -0
1,111 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/des.c +338 -27
365 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/dsa-common.c new file +473 -0
473 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/dsa.c +735 -472
1,207 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc-common.h new file +143 -0
143 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc-curves.c new file +1585 -0
1,585 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc-ecdh.c new file +127 -0
127 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc-ecdsa.c new file +297 -0
297 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc-eddsa.c new file +1079 -0
1,079 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc-gost.c new file +218 -0
218 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc-misc.c new file +469 -0
469 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc-sm2.c new file +569 -0
569 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/ecc.c +1610 -1330
2,940 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/elgamal.c +574 -255
829 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/gost-s-box.c new file +266 -0
266 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/gost-sb.h new file +2128 -0
2,128 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/gost.h new file +34 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/cipher/gost28147.c new file +553 -0
553 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/gostr3411-94.c new file +383 -0
383 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/hash-common.c +106 -6
112 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/hash-common.h +32 -3
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/cipher/hmac-tests.c deleted +0 -732
732 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/kdf-internal.h new file +43 -0
43 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/kdf.c +1014 -60
1,074 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/keccak-armv7-neon.S new file +945 -0
945 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/keccak.c new file +1561 -0
1,561 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/keccak_permute_32.h new file +536 -0
536 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/keccak_permute_64.h new file +385 -0
385 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/mac-cmac.c new file +524 -0
524 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/mac-gmac.c new file +187 -0
187 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/mac-hmac.c new file +1471 -0
1,471 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/mac-internal.h new file +275 -0
275 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/mac-poly1305.c new file +364 -0
364 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/mac.c new file +802 -0
802 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/md.c +885 -632
1,517 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/md4.c +68 -99
167 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/md5.c +70 -103
173 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/poly1305-internal.h new file +64 -0
64 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/poly1305-s390x.S new file +87 -0
87 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/poly1305.c new file +763 -0
763 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/primegen.c +286 -269
555 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/pubkey-internal.h new file +107 -0
107 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/pubkey-util.c new file +1369 -0
1,369 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/pubkey.c +711 -3604
4,315 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rfc2268.c +44 -7
51 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-aarch64.S new file +514 -0
514 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-aesni.c new file +4880 -0
4,880 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-amd64.S new file +477 -0
477 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-arm.S new file +581 -0
581 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-armv8-aarch32-ce.S new file +1988 -0
1,988 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-armv8-aarch64-ce.S new file +1921 -0
1,921 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-armv8-ce.c new file +431 -0
431 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-gcm-p10le.s new file +1401 -0
1,401 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-internal.h new file +204 -0
204 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-p10le.c new file +119 -0
119 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-padlock.c new file +110 -0
110 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-ppc-common.h new file +342 -0
342 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-ppc-functions.h new file +2020 -0
2,020 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-ppc.c new file +259 -0
259 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-ppc9le.c new file +102 -0
102 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-s390x.c new file +1166 -0
1,166 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-ssse3-amd64-asm.S new file +874 -0
874 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-ssse3-amd64.c new file +743 -0
743 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-tables.h +190 -1649
1,839 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-vaes-avx2-amd64.S new file +3021 -0
3,021 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael-vaes.c new file +197 -0
197 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rijndael.c +1309 -1302
2,611 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rmd160.c +268 -320
588 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rsa-common.c new file +1115 -0
1,115 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/rsa.c +1296 -437
1,733 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/salsa20-amd64.S new file +940 -0
940 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/salsa20-armv7-neon.S new file +899 -0
899 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/salsa20.c new file +600 -0
600 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/scrypt.c new file +322 -0
322 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/seed.c +14 -14
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/cipher/serpent-armv7-neon.S new file +1124 -0
1,124 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/serpent-avx2-amd64.S new file +1160 -0
1,160 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/serpent-sse2-amd64.S new file +1211 -0
1,211 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/serpent.c +1329 -471
1,800 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1-armv7-neon.S new file +526 -0
526 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1-armv8-aarch32-ce.S new file +220 -0
220 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1-armv8-aarch64-ce.S new file +201 -0
201 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1-avx-amd64.S new file +429 -0
429 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1-avx-bmi2-amd64.S new file +441 -0
441 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1-avx2-bmi2-amd64.S new file +573 -0
573 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1-intel-shaext.c new file +292 -0
292 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1-ssse3-amd64.S new file +437 -0
437 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1.c +431 -140
571 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha1.h new file +47 -0
47 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha256-armv8-aarch32-ce.S new file +231 -0
231 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha256-armv8-aarch64-ce.S new file +215 -0
215 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha256-avx-amd64.S new file +506 -0
506 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha256-avx2-bmi2-amd64.S new file +527 -0
527 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha256-intel-shaext.c new file +363 -0
363 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha256-ppc.c new file +795 -0
795 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha256-ssse3-amd64.S new file +528 -0
528 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha256.c +531 -244
775 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha512-arm.S new file +464 -0
464 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha512-armv7-neon.S new file +452 -0
452 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha512-avx-amd64.S new file +461 -0
461 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha512-avx2-bmi2-amd64.S new file +502 -0
502 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha512-ppc.c new file +969 -0
969 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha512-ssse3-amd64.S new file +467 -0
467 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha512-ssse3-i386.c new file +404 -0
404 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sha512.c +946 -286
1,232 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sm3-aarch64.S new file +657 -0
657 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sm3-avx-bmi2-amd64.S new file +553 -0
553 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sm3.c new file +537 -0
537 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sm4-aesni-avx-amd64.S new file +987 -0
987 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sm4-aesni-avx2-amd64.S new file +851 -0
851 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/sm4.c new file +1251 -0
1,251 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/stribog.c new file +1362 -0
1,362 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/test-getrusage.c deleted +0 -105
105 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/tiger.c +128 -179
307 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/twofish-aarch64.S new file +321 -0
321 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/twofish-amd64.S new file +1184 -0
1,184 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/twofish-arm.S new file +363 -0
363 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/twofish-avx2-amd64.S new file +1048 -0
1,048 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/twofish.c +823 -70
893 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/whirlpool-sse2-amd64.S new file +348 -0
348 lines not on this page · raw message
grub-core/lib/libgcrypt/cipher/whirlpool.c +232 -102
334 lines not on this page · raw message
grub-core/lib/libgcrypt/compat/Makefile.am new file +48 -0
48 lines not on this page · raw message
grub-core/lib/libgcrypt/compat/clock.c new file +36 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/compat/compat.c new file +40 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/compat/getpid.c new file +29 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/compat/libcompat.h new file +37 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/config.h.in new file +823 -0
823 lines not on this page · raw message
grub-core/lib/libgcrypt/configure new file +25141 -0
25,141 lines not on this page · raw message
grub-core/lib/libgcrypt/configure.ac new file +3394 -0
3,394 lines not on this page · raw message
grub-core/lib/libgcrypt/mkinstalldirs new file +161 -0
161 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/ChangeLog-2011 +13 -4
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/Makefile.am +6 -3
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/Manifest deleted +0 -41
41 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/aarch64/distfiles renamed from grub-core/lib/libgcrypt/mpi/pentium4/sse2/distfiles +1 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/aarch64/mpi-asm-defs.h new file +4 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/aarch64/mpih-add1.S new file +74 -0
74 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/aarch64/mpih-mul1.S new file +99 -0
99 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/aarch64/mpih-mul2.S new file +111 -0
111 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/aarch64/mpih-mul3.S new file +124 -0
124 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/aarch64/mpih-sub1.S new file +74 -0
74 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/alpha/README +2 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/amd64/distfiles +1 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/amd64/func_abi.h new file +34 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/amd64/mpi-asm-defs.h +1 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/amd64/mpih-add1.S +2 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/amd64/mpih-lshift.S +24 -23
47 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/amd64/mpih-mul1.S +2 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/amd64/mpih-mul2.S +2 -44
46 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/amd64/mpih-mul3.S +2 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/amd64/mpih-rshift.S +25 -24
49 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/amd64/mpih-sub1.S +2 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/arm/distfiles renamed from grub-core/lib/libgcrypt/mpi/i586/distfiles +1 -5
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/arm/mpi-asm-defs.h new file +4 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/arm/mpih-add1.S new file +76 -0
76 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/arm/mpih-mul1.S new file +80 -0
80 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/arm/mpih-mul2.S new file +94 -0
94 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/arm/mpih-mul3.S new file +100 -0
100 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/arm/mpih-sub1.S new file +77 -0
77 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/asm-common-aarch64.h new file +26 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/asm-common-amd64.h new file +26 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/config.links +125 -49
174 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/ec-ed25519.c renamed from grub-core/lib/libgcrypt/cipher/rmd.h +18 -17
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/ec-hw-s390x.c new file +412 -0
412 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/ec-inline.h new file +1065 -0
1,065 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/ec-internal.h new file +49 -0
49 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/ec-nist.c new file +817 -0
817 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/ec.c +1751 -302
2,053 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/generic/Manifest deleted +0 -29
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/generic/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/generic/mpi-asm-defs.h +7 -9
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/generic/mpih-add1.c +3 -3
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/generic/mpih-lshift.c +1 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/generic/mpih-mul1.c +2 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/generic/mpih-mul2.c +3 -3
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/generic/mpih-mul3.c +2 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/generic/mpih-sub1.c +2 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i386/Manifest deleted +0 -28
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i386/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i386/mpih-add1.S +46 -1
47 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/i386/mpih-lshift.S +10 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i386/mpih-mul1.S +11 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i386/mpih-mul2.S +11 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i386/mpih-mul3.S +11 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i386/mpih-rshift.S +11 -3
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i386/mpih-sub1.S +46 -1
47 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/i386/syntax.h +31 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i586/Manifest deleted +0 -27
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i586/README deleted +0 -26
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/i586/mpih-add1.S deleted +0 -135
135 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/i586/mpih-lshift.S deleted +0 -229
229 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/i586/mpih-mul1.S deleted +0 -89
89 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/i586/mpih-mul2.S deleted +0 -93
93 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/i586/mpih-mul3.S deleted +0 -93
93 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/i586/mpih-rshift.S deleted +0 -228
228 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/i586/mpih-sub1.S deleted +0 -142
142 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/longlong.h +437 -249
686 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/m68k/Manifest deleted +0 -25
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/m68k/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/m68k/mc68020/Manifest deleted +0 -23
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/m68k/mc68020/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/m68k/syntax.h +1 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/mips3/Manifest deleted +0 -28
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/mips3/README +1 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/mips3/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/mpi-add.c +12 -11
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/mpi-bit.c +83 -36
119 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/mpi-cmp.c +32 -9
41 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/mpi-internal.h +52 -2
54 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/mpi-inv.c +305 -7
312 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/mpi-pow.c +446 -12
458 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/mpi-scan.c +66 -66
132 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/mpicoder.c +532 -231
763 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/mpih-const-time.c new file +240 -0
240 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/mpih-mul.c +10 -9
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/mpiutil.c +410 -71
481 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/pa7100/Manifest deleted +0 -22
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/pa7100/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/pentium4/README deleted +0 -115
115 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/pentium4/distfiles deleted +0 -3
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/pentium4/mmx/distfiles deleted +0 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/pentium4/mmx/mpih-lshift.S deleted +0 -457
457 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/pentium4/mmx/mpih-rshift.S deleted +0 -453
453 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-add1.S deleted +0 -91
91 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-mul1.S deleted +0 -96
96 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-mul2.S deleted +0 -136
136 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-mul3.S deleted +0 -127
127 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/pentium4/sse2/mpih-sub1.S deleted +0 -112
112 lines not on this page · raw message
grub-core/lib/libgcrypt/mpi/power/Manifest deleted +0 -27
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/power/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/powerpc32/Manifest deleted +0 -28
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/powerpc32/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/sparc32/Manifest deleted +0 -24
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/sparc32/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/sparc32v8/Manifest deleted +0 -23
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/sparc32v8/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/supersparc/Manifest deleted +0 -21
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/mpi/supersparc/distfiles +0 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/src/ChangeLog-2011 +69 -6
75 lines not on this page · raw message
grub-core/lib/libgcrypt/src/Makefile.am +59 -28
87 lines not on this page · raw message
grub-core/lib/libgcrypt/src/Manifest deleted +0 -58
58 lines not on this page · raw message
grub-core/lib/libgcrypt/src/ath.c deleted +0 -344
344 lines not on this page · raw message
grub-core/lib/libgcrypt/src/ath.h deleted +0 -147
147 lines not on this page · raw message
grub-core/lib/libgcrypt/src/cipher-proto.h +200 -48
248 lines not on this page · raw message
grub-core/lib/libgcrypt/src/cipher.h +94 -56
150 lines not on this page · raw message
grub-core/lib/libgcrypt/src/const-time.c new file +88 -0
88 lines not on this page · raw message
grub-core/lib/libgcrypt/src/const-time.h new file +167 -0
167 lines not on this page · raw message
grub-core/lib/libgcrypt/src/context.c new file +139 -0
139 lines not on this page · raw message
grub-core/lib/libgcrypt/src/context.h new file +32 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/src/dumpsexp.c +13 -11
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/src/ec-context.h new file +107 -0
107 lines not on this page · raw message
grub-core/lib/libgcrypt/src/fips.c +554 -248
802 lines not on this page · raw message
grub-core/lib/libgcrypt/src/g10lib.h +224 -41
265 lines not on this page · raw message
grub-core/lib/libgcrypt/src/gcrypt-int.h new file +563 -0
563 lines not on this page · raw message
grub-core/lib/libgcrypt/src/gcrypt-module.h deleted +0 -240
240 lines not on this page · raw message
grub-core/lib/libgcrypt/src/gcrypt-testapi.h new file +69 -0
69 lines not on this page · raw message
grub-core/lib/libgcrypt/src/gcrypt.h.in +665 -508
1,173 lines not on this page · raw message
grub-core/lib/libgcrypt/src/gen-note-integrity.sh new file +123 -0
123 lines not on this page · raw message
grub-core/lib/libgcrypt/src/global.c +600 -290
890 lines not on this page · raw message
grub-core/lib/libgcrypt/src/hmac256.c +51 -34
85 lines not on this page · raw message
grub-core/lib/libgcrypt/src/hwf-arm.c new file +393 -0
393 lines not on this page · raw message
grub-core/lib/libgcrypt/src/hwf-common.h new file +28 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/src/hwf-ppc.c new file +247 -0
247 lines not on this page · raw message
grub-core/lib/libgcrypt/src/hwf-s390x.c new file +231 -0
231 lines not on this page · raw message
grub-core/lib/libgcrypt/src/hwf-x86.c new file +414 -0
414 lines not on this page · raw message
grub-core/lib/libgcrypt/src/hwfeatures.c +180 -134
314 lines not on this page · raw message
grub-core/lib/libgcrypt/src/libgcrypt-config.in +14 -2
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/src/libgcrypt.def +108 -46
154 lines not on this page · raw message
grub-core/lib/libgcrypt/src/libgcrypt.m4 +70 -26
96 lines not on this page · raw message
grub-core/lib/libgcrypt/src/libgcrypt.pc.in new file +18 -0
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/src/libgcrypt.vers +48 -28
76 lines not on this page · raw message
grub-core/lib/libgcrypt/src/misc.c +313 -32
345 lines not on this page · raw message
grub-core/lib/libgcrypt/src/module.c deleted +0 -212
212 lines not on this page · raw message
grub-core/lib/libgcrypt/src/mpi.h +138 -77
215 lines not on this page · raw message
grub-core/lib/libgcrypt/src/mpicalc.c new file +648 -0
648 lines not on this page · raw message
grub-core/lib/libgcrypt/src/secmem.c +436 -180
616 lines not on this page · raw message
grub-core/lib/libgcrypt/src/sexp.c +1009 -355
1,364 lines not on this page · raw message
grub-core/lib/libgcrypt/src/stdmem.c +24 -20
44 lines not on this page · raw message
grub-core/lib/libgcrypt/src/types.h +81 -73
154 lines not on this page · raw message
grub-core/lib/libgcrypt/src/versioninfo.rc.in +1 -1
Lines of this file are not shown. View the raw message.
grub-core/lib/libgcrypt/src/visibility.c +580 -371
951 lines not on this page · raw message
grub-core/lib/libgcrypt/src/visibility.h +474 -746
1,220 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.49.0
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Part of the diff is not shown here. View the raw message.
PATCH 2/7 Import b64dec from gpg-error
Base on libgpg-error 1.49 but with modifications to make it compile in GRUB environment
--- grub-core/lib/b64dec.c | 293 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 293 insertions(+) create mode 100644 grub-core/lib/b64dec.c
grub-core/lib/b64dec.c new file +293 -0
@@ -0,0 +1,293 @@ +/* b64dec.c - Simple Base64 decoder. +* Copyright (C) 2008, 2011 Free Software Foundation, Inc. +* Copyright (C) 2008, 2011, 2016 g10 Code GmbH +* +* This file is part of Libgpg-error. +* +* This file is free software; you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as +* published by the Free Software Foundation; either version 2.1 of +* the License, or (at your option) any later version. +* +* This file is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program; if not, see <https://www.gnu.org/licenses/>. +* SPDX-License-Identifier: LGPL-2.1-or-later +* +* This file was originally a part of GnuPG. +*/ + +#include <config.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include <grub/crypto.h> + +struct _gpgrt_b64state +{ +int idx; +int quad_count; +char *title; +unsigned char radbuf[4 ]; +unsigned int crc; +gpg_err_code_t lasterr; +unsigned int flags; +unsigned int stop_seen:1 ; +unsigned int invalid_encoding:1 ; +unsigned int using_decoder:1 ; +}; + + +/* The reverse base-64 list used for base-64 decoding. */ +static unsigned char const asctobin[128 ] = + { +0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , +0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , +0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , +0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , +0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , +0xff ,0xff ,0xff ,0x3e ,0xff ,0xff ,0xff ,0x3f , +0x34 ,0x35 ,0x36 ,0x37 ,0x38 ,0x39 ,0x3a ,0x3b , +0x3c ,0x3d ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , +0xff ,0x00 ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 , +0x07 ,0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e , +0x0f ,0x10 ,0x11 ,0x12 ,0x13 ,0x14 ,0x15 ,0x16 , +0x17 ,0x18 ,0x19 ,0xff ,0xff ,0xff ,0xff ,0xff , +0xff ,0x1a ,0x1b ,0x1c ,0x1d ,0x1e ,0x1f ,0x20 , +0x21 ,0x22 ,0x23 ,0x24 ,0x25 ,0x26 ,0x27 ,0x28 , +0x29 ,0x2a ,0x2b ,0x2c ,0x2d ,0x2e ,0x2f ,0x30 , +0x31 ,0x32 ,0x33 ,0xff ,0xff ,0xff ,0xff ,0xff + }; + +enum decoder_states + { + s_init, s_idle, s_lfseen, s_beginseen, s_waitheader, s_waitblank, s_begin, + s_b64_0, s_b64_1, s_b64_2, s_b64_3, + s_waitendtitle, s_waitend + }; + + + +/* Allocate and initialize the context for the base64 decoder. If +TITLE is NULL a plain base64 decoding is done. If it is the empty +string the decoder will skip everything until a "-----BEGIN " line +has been seen, decoding ends at a "----END " line. */ +gpgrt_b64state_t +gpgrt_b64dec_start (const char *title) +{ +gpgrt_b64state_t state; +char *t =NULL ; + +if (title) + { + t =grub_strdup (title); +if (!t) +return NULL ; + } + + state =grub_calloc (1 ,sizeof (struct _gpgrt_b64state )); +if (!state) + { +grub_free (t); +return NULL ; + } + +if (t) + { + state->title = t; + state->idx = s_init; + } +else + state->idx = s_b64_0; + + state->using_decoder =1 ; + +return state; +} + + +/* Do in-place decoding of base-64 data of LENGTH in BUFFER. Stores the +new length of the buffer at R_NBYTES. */ +gpg_err_code_t +gpgrt_b64dec_proc (gpgrt_b64state_t state,void *buffer,size_t length, +size_t *r_nbytes) +{ +enum decoder_states ds = state->idx; +unsigned char val = state->radbuf[0 ]; +int pos = state->quad_count; +char *d, *s; + +if (state->lasterr) +return state->lasterr; + +if (state->stop_seen) + { + *r_nbytes =0 ; + state->lasterr =GPG_ERR_EOF ; +grub_free (state->title); + state->title =NULL ; +return state->lasterr; + } + +for (s=d=buffer; length && !state->stop_seen; length--, s++) + { + again: +switch (ds) + { +case s_idle: +if (*s =='\n' ) + { + ds = s_lfseen; + pos =0 ; + } +break ; +case s_init: + ds = s_lfseen; +/* Fall through */ +case s_lfseen: +if (*s !="-----BEGIN " [pos]) + { + ds = s_idle; + goto again; + } +else if (pos ==10 ) + { + pos =0 ; + ds = s_beginseen; + } +else + pos++; +break ; +case s_beginseen: +if (*s !="PGP " [pos]) + ds = s_begin;/* Not a PGP armor. */ +else if (pos ==3 ) + ds = s_waitheader; +else + pos++; +break ; +case s_waitheader: +if (*s =='\n' ) + ds = s_waitblank; +break ; +case s_waitblank: +if (*s =='\n' ) + ds = s_b64_0;/* blank line found. */ +else if (*s ==' ' || *s =='\r' || *s =='\t' ) + ;/* Ignore spaces. */ +else + { +/* Armor header line. Note that we don't care that our +* FSM accepts a header prefixed with spaces. */ + ds = s_waitheader;/* Wait for next header. */ + } +break ; +case s_begin: +if (*s =='\n' ) + ds = s_b64_0; +break ; +case s_b64_0: +case s_b64_1: +case s_b64_2: +case s_b64_3: + { +int c; + +if (*s =='-' && state->title) + { +/* Not a valid Base64 character: assume end +header. */ + ds = s_waitend; + } +else if (*s =='=' ) + { +/* Pad character: stop */ +if (ds == s_b64_1) + *d++ = val; + ds = state->title? s_waitendtitle : s_waitend; + } +else if (*s =='\n' || *s ==' ' || *s =='\r' || *s =='\t' ) + ;/* Skip white spaces. */ +else if ( (*s &0x80 ) + || (c = asctobin[*(unsigned char *)s]) ==255 ) + { +/* Skip invalid encodings. */ + state->invalid_encoding =1 ; + } +else if (ds == s_b64_0) + { + val = c <<2 ; + ds = s_b64_1; + } +else if (ds == s_b64_1) + { + val |= (c>>4 )&3 ; + *d++ = val; + val = (c<<4 )&0xf0 ; + ds = s_b64_2; + } +else if (ds == s_b64_2) + { + val |= (c>>2 )&15 ; + *d++ = val; + val = (c<<6 )&0xc0 ; + ds = s_b64_3; + } +else + { + val |= c&0x3f ; + *d++ = val; + ds = s_b64_0; + } + } +break ; +case s_waitendtitle: +if (*s =='-' ) + ds = s_waitend; +break ; +case s_waitend: +if ( *s =='\n' ) + state->stop_seen =1 ; +break ; +default : +grub_fatal ("invalid state" ); + } + } + + + state->idx = ds; + state->radbuf[0 ] = val; + state->quad_count = pos; + *r_nbytes = (d -(char *) buffer); +return 0 ; +} + + +/* Return an error code in case an encoding error has been found +during decoding. */ +gpg_err_code_t +gpgrt_b64dec_finish (gpgrt_b64state_t state) +{ +gpg_error_t err; + +if (!state) +return 0 ;/* Already released. */ + +if (!state->using_decoder) + err =GPG_ERR_CONFLICT ;/* State was allocated for the encoder. */ +else if (state->lasterr) + err = state->lasterr; +else + { +grub_free (state->title); + err = state->invalid_encoding?GPG_ERR_BAD_DATA :0 ; + } +grub_free (state); + +return err; +}
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 2/7] Import b64dec from gpg-error
Quoted 2 lines · Vladimir Serbinenko
Base on libgpg-error 1.49 but with modifications to make it compile in GRUB environment
The same comments like for patch #1.
Additionally, I think the modifications should go to separate patch.
... and missing cover letter for the series...
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
PATCH 3/7 Adjust import script, definitions and API users for libgcrypt 1.10
In reply to Vladimir Serbinenko--- autogen.sh | 7 +- conf/Makefile.common | 4 +- grub-core/Makefile.core.def | 36 ++- grub-core/commands/hashsum.c | 2 +- grub-core/commands/legacycfg.c | 6 +- grub-core/commands/pgp.c | 114 +++------ grub-core/commands/xnu_uuid.c | 2 +- grub-core/disk/cryptodisk.c | 2 +- grub-core/io/gzio.c | 2 +- grub-core/io/lzopio.c | 2 +- grub-core/lib/adler32.c | 21 +- grub-core/lib/crc64.c | 24 +- grub-core/lib/crypto.c | 245 +++++++++++++++++- grub-core/lib/libgcrypt-patches/01_md.patch | 141 +++++++++++ grub-core/lib/libgcrypt/src/gcrypt-int.h | 51 ---- grub-core/lib/libgcrypt_wrap/cipher_wrap.h | 13 +- grub-core/lib/libgcrypt_wrap/mem.c | 83 ++++++- grub-core/lib/posix_wrap/sys/types.h | 4 + grub-core/lib/xzembed/xz_dec_stream.c | 18 +- include/grub/crypto.h | 261 ++++++++++++++++---- include/grub/gcrypt/gpg-error.h | 9 + util/grub-fstest.c | 2 +- util/import_gcry.py | 177 ++++++++----- util/import_gcrypt_inth.sed | 17 ++ util/import_gcrypth.sed | 2 - 25 files changed, 965 insertions(+), 280 deletions(-) create mode 100644 grub-core/lib/libgcrypt-patches/01_md.patch create mode 100644 util/import_gcrypt_inth.sed
autogen.sh +6 -1
@@ -35,6 +35,7 @@ ${PYTHON} util/import_unicode.py unicode/UnicodeData.txt unicode/BidiMirroring.t echo "Importing libgcrypt..." ${PYTHON} util/import_gcry.py grub-core/lib/libgcrypt/ grub-core sed -n -f util/import_gcrypth.sed < grub-core/lib/libgcrypt/src/gcrypt.h.in > include/grub/gcrypt/gcrypt.h +sed -n -f util/import_gcrypt_inth.sed < grub-core/lib/libgcrypt/src/gcrypt-int.h >> include/grub/gcrypt/gcrypt.h if [ -f include/grub/gcrypt/g10lib.h ]; then rm include/grub/gcrypt/g10lib.h fi
@@ -51,6 +52,10 @@ for x in mpi-asm-defs.h mpih-add1.c mpih-sub1.c mpih-mul1.c mpih-mul2.c mpih-mul cp grub-core/lib/libgcrypt-grub/mpi/generic/"$x" grub-core/lib/libgcrypt-grub/mpi/"$x" done +for x in grub-core/lib/libgcrypt-patches/*.patch; do + patch -i $x -p1 +done + echo "Importing libtasn1..." if [ -d grub-core/lib/libtasn1-grub ]; then rm -rf grub-core/lib/libtasn1-grub
@@ -81,7 +86,7 @@ for patch in \ 0011-asn1_test-print-the-error-messages-with-grub_printf.patch \ 0012-asn1_test-use-the-grub-specific-functions-and-types.patch \ 0013-asn1_test-enable-the-testcase-only-when-GRUB_LONG_MA.patch ; do - patch -p1 -i grub-core/lib/libtasn1-patches/$patch + patch -p1 -i grub-core/lib/libtasn1-patches/$patch done echo "Generating Automake input..."
conf/Makefile.common +2 -2
@@ -81,8 +81,8 @@ CPPFLAGS_GNULIB = -I$(top_builddir)/grub-core/lib/gnulib -I$(top_srcdir)/grub-co CFLAGS_POSIX = -fno-builtin CPPFLAGS_POSIX = -I$(top_srcdir)/grub-core/lib/posix_wrap -CFLAGS_GCRY = -Wno-error -Wno-missing-field-initializers -Wno-redundant-decls -Wno-undef $(CFLAGS_POSIX) -CPPFLAGS_GCRY = -I$(top_srcdir)/grub-core/lib/libgcrypt_wrap $(CPPFLAGS_POSIX) -D_GCRYPT_IN_LIBGCRYPT=1 -I$(top_srcdir)/include/grub/gcrypt +CFLAGS_GCRY = -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-redundant-decls -Wno-undef $(CFLAGS_POSIX) +CPPFLAGS_GCRY = -I$(top_srcdir)/grub-core/lib/libgcrypt_wrap $(CPPFLAGS_POSIX) -D_GCRYPT_IN_LIBGCRYPT=1 -D_GCRYPT_CONFIG_H_INCLUDED=1 -DHAVE_STRTOUL=1 -I$(top_srcdir)/include/grub/gcrypt CPPFLAGS_EFIEMU = -I$(top_srcdir)/grub-core/efiemu/runtime
grub-core/Makefile.core.def +34 -2
@@ -975,8 +975,8 @@ module = { module = { name = pgp; common = commands/pgp.c; - cflags = '$(CFLAGS_POSIX)'; - cppflags = '-I$(srcdir)/lib/posix_wrap'; + cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare'; + cppflags = '$(CPPFLAGS_GCRY)'; }; module = {
@@ -2180,6 +2180,22 @@ module = { common = tests/setjmp_test.c; }; +module = { + name = dsa_sexp_test; + common = tests/dsa_sexp_test.c; + + cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare'; + cppflags = '$(CPPFLAGS_GCRY)'; +}; + +module = { + name = rsa_sexp_test; + common = tests/rsa_sexp_test.c; + + cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare'; + cppflags = '$(CPPFLAGS_GCRY)'; +}; + module = { name = signature_test; common = tests/signature_test.c;
@@ -2534,7 +2550,23 @@ module = { common = lib/libgcrypt-grub/mpi/mpicoder.c; common = lib/libgcrypt-grub/mpi/mpih-rshift.c; common = lib/libgcrypt-grub/mpi/mpi-inline.c; + common = lib/libgcrypt-grub/mpi/mpih-const-time.c; + common = lib/libgcrypt-grub/mpi/mpi-scan.c; + common = lib/libgcrypt-grub/src/const-time.c; common = lib/libgcrypt_wrap/mem.c; + common = lib/libgcrypt-grub/cipher/md.c; + + cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare -Wno-unused-but-set-variable'; + cppflags = '$(CPPFLAGS_GCRY)'; +}; + +module = { + name = pubkey; + common = lib/libgcrypt-grub/cipher/pubkey-util.c; + common = lib/libgcrypt-grub/cipher/rsa-common.c; + common = lib/libgcrypt-grub/cipher/dsa-common.c; + common = lib/libgcrypt-grub/src/sexp.c; + common = lib/b64dec.c; cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare'; cppflags = '$(CPPFLAGS_GCRY)';
grub-core/commands/hashsum.c +1 -1
@@ -73,7 +73,7 @@ hash_file (grub_file_t file, const gcry_md_spec_t *hash, void *result)if (!readbuf || !context) goto fail; - hash->init (context); + hash->init (context,0 );while (1 ) {grub_ssize_t r;
grub-core/commands/legacycfg.c +3 -3
@@ -624,7 +624,7 @@ check_password_md5_real (const char *entered,if (!ctx)return 0 ; -GRUB_MD_MD5 ->init (ctx); +GRUB_MD_MD5 ->init (ctx,0 );GRUB_MD_MD5 ->write (ctx, entered, enteredlen);GRUB_MD_MD5 ->write (ctx, pw->salt +3 , pw->saltlen -3 );GRUB_MD_MD5 ->write (ctx, entered, enteredlen);
@@ -632,7 +632,7 @@ check_password_md5_real (const char *entered,GRUB_MD_MD5 ->final (ctx);grub_memcpy (alt_result, digest,MD5_HASHLEN ); -GRUB_MD_MD5 ->init (ctx); +GRUB_MD_MD5 ->init (ctx,0 );GRUB_MD_MD5 ->write (ctx, entered, enteredlen);GRUB_MD_MD5 ->write (ctx, pw->salt, pw->saltlen);/* include the $1$ header */ for (i = enteredlen; i >16 ; i -=16 )
@@ -648,7 +648,7 @@ check_password_md5_real (const char *entered, {grub_memcpy (alt_result, digest,16 ); -GRUB_MD_MD5 ->init (ctx); +GRUB_MD_MD5 ->init (ctx,0 );if ((i &1 ) !=0 )GRUB_MD_MD5 ->write (ctx, entered, enteredlen);else
grub-core/commands/pgp.c +33 -81
197 lines not on this page · raw message
grub-core/commands/xnu_uuid.c +1 -1
@@ -68,7 +68,7 @@ grub_cmd_xnu_uuid (grub_command_t cmd __attribute__ ((unused)), ctx =grub_zalloc (GRUB_MD_MD5 ->contextsize);if (!ctx)return grub_errno; -GRUB_MD_MD5 ->init (ctx); +GRUB_MD_MD5 ->init (ctx,0 );GRUB_MD_MD5 ->write (ctx, hash_prefix,sizeof (hash_prefix));GRUB_MD_MD5 ->write (ctx, &serial,sizeof (serial));GRUB_MD_MD5 ->final (ctx);
grub-core/disk/cryptodisk.c +1 -1
@@ -302,7 +302,7 @@ grub_cryptodisk_endecrypt (struct grub_cryptodisk *dev,return GPG_ERR_OUT_OF_MEMORY ; tmp =grub_cpu_to_le64 (sector << log_sector_size); - dev->iv_hash->init (ctx); + dev->iv_hash->init (ctx,0 ); dev->iv_hash->write (ctx, dev->iv_prefix, dev->iv_prefix_len); dev->iv_hash->write (ctx, &tmp,sizeof (tmp)); dev->iv_hash->final (ctx);
grub-core/io/gzio.c +1 -1
@@ -1201,7 +1201,7 @@ initialize_tables (grub_gzio_t gzio) gzio->td =NULL ;if (gzio->hcontext) - gzio->hdesc->init (gzio->hcontext); + gzio->hdesc->init (gzio->hcontext,0 ); }
grub-core/io/lzopio.c +1 -1
@@ -345,7 +345,7 @@ test_header (grub_file_t file)if (! context)return 0 ; - hcheck->init (context); + hcheck->init (context,0 );/* MAGIC is not included in check calculation. */ hcheck->write (context, &header.lzop_version,sizeof (header)-LZOP_MAGIC_SIZE );
grub-core/lib/adler32.c +16 -5
@@ -29,10 +29,12 @@ struct adler32_context };static void -adler32_init (void *context) +adler32_init (void *context,unsigned int flags) {struct adler32_context *ctx = context; + (void ) flags; + ctx->a =1 ; ctx->b =0 ; }
@@ -81,13 +83,22 @@ adler32_read (void *context)static gcry_md_spec_t spec_adler32 = { -"ADLER32" ,0 ,0 ,0 ,4 , - adler32_init, adler32_write, adler32_final, adler32_read, -sizeof (struct adler32_context ), + .algo =GCRY_MD_ADLER32 , + .flags = {.disabled =0 , .fips =0 }, + .name ="ADLER32" , + .asnoid =NULL , + .asnlen =0 , + .oids =NULL , + .mdlen =4 , + .init = adler32_init, + .write = adler32_write, + .final = adler32_final, + .read = adler32_read, + .contextsize =sizeof (struct adler32_context ), + .blocksize =64 , #ifdef GRUB_UTIL .modname ="adler32" , #endif - .blocksize =64 };
grub-core/lib/crc64.c +19 -5
@@ -61,8 +61,10 @@ init_crc64_table (void) }static void -crc64_init (void *context) +crc64_init (void *context,unsigned int flags) { + (void ) flags; +if (! crc64_table[1 ])init_crc64_table (); *(grub_uint64_t *) context =0 ;
@@ -97,10 +99,22 @@ crc64_final (void *context __attribute__ ((unused)))gcry_md_spec_t _gcry_digest_spec_crc64 = { -"CRC64" ,0 ,0 ,0 ,8 , - crc64_init, crc64_write, crc64_final, crc64_read, -sizeof (grub_uint64_t), - .blocksize =64 + .algo =GCRY_MD_CRC64 , + .flags = {.disabled =0 , .fips =0 }, + .name ="CRC64" , + .asnoid =NULL , + .asnlen =0 , + .oids =NULL , + .mdlen =8 , + .init = crc64_init, + .write = crc64_write, + .final = crc64_final, + .read = crc64_read, + .contextsize =sizeof (grub_uint64_t), + .blocksize =64 , +#ifdef GRUB_UTIL + .modname ="crc64" , +#endif };GRUB_MOD_INIT (crc64)
grub-core/lib/crypto.c +234 -11
311 lines not on this page · raw message
grub-core/lib/libgcrypt-patches/01_md.patch new file +141 -0
141 lines not on this page · raw message
grub-core/lib/libgcrypt/src/gcrypt-int.h +0 -51
57 lines not on this page · raw message
grub-core/lib/libgcrypt_wrap/cipher_wrap.h +11 -2
@@ -19,6 +19,8 @@#ifndef GRUB_GCRY_WRAP_HEADER #define GRUB_GCRY_WRAP_HEADER 1 +#define USE_SHA512 1 +#include <grub/types.h> #include <grub/mm.h> #include <grub/misc.h>
@@ -35,10 +37,9 @@#undef __GNU_LIBRARY__#define __GNU_LIBRARY__ 1 +#define UINT64_C (c) (c ## ULL)#define U64_C (c) (c ## ULL) -#define PUBKEY_FLAG_NO_BLINDING (1 << 0) -#define CIPHER_INFO_NO_WEAK_KEY 1#define HAVE_U64_TYPEDEF 1
@@ -74,4 +75,12 @@ _gcry_fips_mode (void)#define gcry_mpi_mod _gcry_mpi_mod +#define strtol grub_strtol +#define strtoul grub_strtoul +#define atoi (nptr) (strtol((nptr), NULL, 10)) + +#define stpcpy grub_stpcpy + +#define spec_from_algo grub_crypto_lookup_md_by_algo +#endif
grub-core/lib/libgcrypt_wrap/mem.c +81 -2
117 lines not on this page · raw message
grub-core/lib/posix_wrap/sys/types.h +4 -0
@@ -39,12 +39,16 @@ typedef grub_int32_t int32_t;typedef grub_int64_t int64_t ;#define HAVE_U64_TYPEDEF 1 +#define HAVE_TYPE_U64 1typedef grub_uint64_t u64 ;#define HAVE_U32_TYPEDEF 1 +#define HAVE_TYPE_U32 1typedef grub_uint32_t u32 ;#define HAVE_U16_TYPEDEF 1 +#define HAVE_TYPE_U16 1typedef grub_uint16_t u16 ;#define HAVE_BYTE_TYPEDEF 1 +#define HAVE_TYPE_BYTE 1typedef grub_uint8_t byte ;typedef grub_addr_t uintptr_t ;
grub-core/lib/xzembed/xz_dec_stream.c +9 -9
@@ -425,9 +425,9 @@ static enum xz_ret hash_validate(struct xz_dec *s, struct xz_buf *b,#ifndef GRUB_EMBED_DECOMPRESSOR if (s->hash) - s->hash->init (s->hash_context); + s->hash->init (s->hash_context,0 );if (s->crc32) - s->crc32->init (s->crc32_context); + s->crc32->init (s->crc32_context,0 );#endif s->have_hash_value =0 ; s->pos =0 ;
@@ -493,7 +493,7 @@ static enum xz_ret dec_stream_header(struct xz_dec *s) s->crc32_context =kmalloc (s->crc32->contextsize,GFP_KERNEL );if (s->crc32_context ==NULL )return XZ_MEMLIMIT_ERROR ; - s->crc32->init(s->crc32_context); + s->crc32->init(s->crc32_context, 0); }#endif
@@ -531,9 +531,9 @@ static enum xz_ret dec_stream_header(struct xz_dec *s) return XZ_MEMLIMIT_ERROR; } - s->hash->init (s->hash_context); - s->hash->init (s->index.hash.hash_context); - s->hash->init (s->block.hash.hash_context); + s->hash->init (s->hash_context,0 ); + s->hash->init (s->index.hash.hash_context,0 ); + s->hash->init (s->block.hash.hash_context,0 ); }#endif }
@@ -1014,9 +1014,9 @@ void xz_dec_reset(struct xz_dec *s)#ifndef GRUB_EMBED_DECOMPRESSOR if (s->hash) { - s->hash->init (s->hash_context); - s->hash->init (s->index.hash.hash_context); - s->hash->init (s->block.hash.hash_context); + s->hash->init (s->hash_context,0 ); + s->hash->init (s->index.hash.hash_context,0 ); + s->hash->init (s->block.hash.hash_context,0 ); }#endif s->have_hash_value =0 ;
include/grub/crypto.h +218 -43
384 lines not on this page · raw message
include/grub/gcrypt/gpg-error.h +9 -0
@@ -29,4 +29,13 @@ gpg_err_source (gpg_error_t err __attribute__ ((unused)))gcry_err_code_t gpg_error_from_syserror (void ); +gcry_err_code_t +gpg_err_code_from_syserror (void ); + +gcry_err_code_t +gpg_error_from_errno (int err); + +gcry_err_code_t +gpg_err_code_from_errno (int err); +#endif
util/grub-fstest.c +1 -1
@@ -365,7 +365,7 @@ static void cmd_crc (char *pathname) {grub_uint8_t *crc32_context =xmalloc (GRUB_MD_CRC32 ->contextsize); -GRUB_MD_CRC32 ->init (crc32_context); +GRUB_MD_CRC32 ->init (crc32_context,0 );read_file (pathname, crc_hook, crc32_context);GRUB_MD_CRC32 ->final (crc32_context);
util/import_gcry.py +122 -55
413 lines not on this page · raw message
util/import_gcrypt_inth.sed new file +17 -0
@@ -0,0 +1,17 @@ +/^#@INSERT_SYS_SELECT_H@/ d +/^@FALLBACK_SOCKLEN_T@/ d +/^# *include <stdlib\.h>/ d +/^# *include <string\.h>/ d +/^# *include <winsock2\.h>/ d +/^# *include <ws2tcpip\.h>/ d +/^# *include <time\.h>/ d +/^# *include <sys\/socket\.h>/ d +/^# *include <sys\/time\.h>/ d +/^ typedef long ssize_t;/ d +/^ typedef int pid_t;/ d +/^# *include <gpg-error\.h>/ s,#include <gpg-error.h>,#include <grub/gcrypt/gpg-error.h>, +/^typedef gpg_error_t gcry_error_t;/ d +/^typedef gpg_err_code_t gcry_err_code_t;/ d +/^typedef struct gcry_mpi \*gcry_mpi_t;/ d +/^#error gcrypt.h already included/ d +p
util/import_gcrypth.sed +0 -2
@@ -13,6 +13,4 @@ /^typedef gpg_error_t gcry_error_t;/ d /^typedef gpg_err_code_t gcry_err_code_t;/ d /^typedef struct gcry_mpi \*gcry_mpi_t;/ d -/^struct gcry_thread_cbs/ d -s,_gcry_mpi_invm,gcry_mpi_invm,g p
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 3/7] Adjust import script, definitions and API users for libgcrypt 1.10
On Tue, Apr 01, 2025 at 03:58:54PM +0300, Vladimir Serbinenko wrote:
Missing commit message...
Is it possible to split this patch into smaller ones?
And should not these changes go to separate patches in grub-core/lib/libgcrypt-patches?
Additionally, git complains in that way:
Applying: Adjust import script, definitions and API users for libgcrypt 1.10 .git/rebase-apply/patch:878: trailing whitespace.
.git/rebase-apply/patch:879: trailing whitespace.
.git/rebase-apply/patch:882: trailing whitespace.
.git/rebase-apply/patch:892: trailing whitespace.
.git/rebase-apply/patch:904: trailing whitespace.
warning: squelched 15 whitespace errors
warning: 20 lines add whitespace errors.
Probably at least some of these issues could be fixed. If not all...
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 3/7] Adjust import script, definitions and API users for libgcrypt 1.10
Quoted 9 lines · Daniel Kiper
On Tue, Apr 01, 2025 at 03:58:54PM +0300, Vladimir Serbinenko wrote:
Missing commit message...
Is it possible to split this patch into smaller ones?
And should not these changes go to separate patches in grub-core/lib/libgcrypt-patches?
No, they are changes to GRUB, not libgcrypt
Quoted 11 lines
Additionally, git complains in that way:
Applying: Adjust import script, definitions and API users for libgcrypt
1.10
.git/rebase-apply/patch:878: trailing whitespace..git/rebase-apply/patch:879: trailing whitespace.
.git/rebase-apply/patch:882: trailing whitespace.
Quoted 9 lines
.git/rebase-apply/patch:892: trailing whitespace.
.git/rebase-apply/patch:904: trailing whitespace.
warning: squelched 15 whitespace errors
warning: 20 lines add whitespace errors.Probably at least some of these issues could be fixed. If not all...
Those come from patches and space has special meaning in patches, so we can't remove them
Quoted 3 lines
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
PATCH 4/7 Add DSA and RSA SEXP tests
In reply to Vladimir SerbinenkoThis allows us to test purely the integration of the implementation of DSA and RSA from libgcrypt without concerning with additional code.
--- grub-core/tests/dsa_sexp_test.c | 125 ++++++++++++++++++++++++++++++++ grub-core/tests/rsa_sexp_test.c | 99 +++++++++++++++++++++++++ 2 files changed, 224 insertions(+) create mode 100644 grub-core/tests/dsa_sexp_test.c create mode 100644 grub-core/tests/rsa_sexp_test.c
grub-core/tests/dsa_sexp_test.c new file +125 -0
@@ -0,0 +1,125 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2024 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include <grub/test.h> +#include <grub/crypto.h> +#include <grub/gcrypt/gcrypt.h> + +GRUB_MOD_LICENSE ("GPLv3+" ); + +static char pubkey_dump[] = { +0x28 ,0x31 ,0x30 ,0x3a ,0x70 ,0x75 ,0x62 ,0x6c , +0x69 ,0x63 ,0x2d ,0x6b ,0x65 ,0x79 ,0x28 ,0x33 , +0x3a ,0x64 ,0x73 ,0x61 ,0x28 ,0x31 ,0x3a ,0x70 , +0x31 ,0x32 ,0x39 ,0x3a ,0x00 ,0xc0 ,0x50 ,0x14 , +0x4c ,0x97 ,0x10 ,0x69 ,0x07 ,0xa7 ,0xe9 ,0x2b , +0xe5 ,0xc6 ,0x88 ,0xe1 ,0x6d ,0xd8 ,0x38 ,0x28 , +0x09 ,0x49 ,0x5b ,0xe8 ,0xa3 ,0x04 ,0xb8 ,0xc4 , +0x6e ,0x98 ,0xc1 ,0xc2 ,0xb0 ,0x2a ,0xe0 ,0xe2 , +0x1a ,0x30 ,0xd2 ,0xdb ,0x45 ,0x1a ,0x88 ,0x80 , +0x28 ,0x24 ,0xb0 ,0xbf ,0xc2 ,0xbd ,0xe9 ,0xf6 , +0x9d ,0xa2 ,0x01 ,0x94 ,0xe6 ,0x7f ,0xa0 ,0xb6 , +0xe4 ,0x39 ,0xfc ,0x54 ,0xba ,0x99 ,0xb6 ,0xbe , +0x39 ,0xee ,0xa5 ,0xd9 ,0xa0 ,0x35 ,0x3c ,0x2d , +0x3e ,0x96 ,0xc3 ,0x96 ,0xa5 ,0x0d ,0x2b ,0xbf , +0x3b ,0xa3 ,0xe2 ,0xe8 ,0x89 ,0xed ,0x60 ,0xe0 , +0x43 ,0x61 ,0xb6 ,0x73 ,0xf6 ,0xa7 ,0xb4 ,0x56 , +0x76 ,0x04 ,0xf7 ,0x8b ,0xf1 ,0x84 ,0xaa ,0x3e , +0xe0 ,0x08 ,0xad ,0xdd ,0xc2 ,0x36 ,0xfd ,0x3d , +0xd0 ,0xad ,0xf4 ,0x3a ,0x7e ,0x80 ,0x8c ,0x52 , +0x2b ,0x04 ,0xa8 ,0x03 ,0x27 ,0x29 ,0x28 ,0x31 , +0x3a ,0x71 ,0x32 ,0x31 ,0x3a ,0x00 ,0xd5 ,0x34 , +0xd2 ,0xc5 ,0x1c ,0x26 ,0xdf ,0xb0 ,0xba ,0x78 , +0x75 ,0xe5 ,0xe9 ,0x36 ,0x6b ,0x04 ,0x03 ,0xe2 , +0x57 ,0x3f ,0x29 ,0x28 ,0x31 ,0x3a ,0x67 ,0x31 , +0x32 ,0x38 ,0x3a ,0x3b ,0xa0 ,0xac ,0xa3 ,0xa1 , +0xd1 ,0x04 ,0x23 ,0x5f ,0x9f ,0xbc ,0x6d ,0x9e , +0x88 ,0x2a ,0x28 ,0xc1 ,0x48 ,0xaf ,0xa5 ,0x17 , +0x59 ,0x3a ,0x17 ,0x33 ,0x56 ,0xaa ,0x8d ,0x27 , +0x64 ,0xfe ,0x8e ,0x8a ,0x2e ,0xba ,0xf2 ,0x66 , +0xcc ,0x66 ,0xbd ,0xa4 ,0xfe ,0xa9 ,0x07 ,0x0d , +0xae ,0x8c ,0x9f ,0x70 ,0xf7 ,0x87 ,0xaa ,0x01 , +0x47 ,0x6b ,0xf9 ,0x0f ,0x09 ,0x18 ,0x42 ,0x76 , +0xc4 ,0xa3 ,0xb9 ,0x55 ,0x11 ,0x8d ,0xa3 ,0xa5 , +0x69 ,0x30 ,0x91 ,0xb7 ,0x03 ,0xef ,0x7f ,0x12 , +0xe6 ,0xb9 ,0x78 ,0x73 ,0xe0 ,0xc0 ,0x4f ,0xc6 , +0xd9 ,0x43 ,0x99 ,0x95 ,0x0b ,0x4d ,0x58 ,0xd3 , +0x6b ,0x76 ,0xb0 ,0x6a ,0xcf ,0x68 ,0x6d ,0xf0 , +0xd9 ,0xc1 ,0x88 ,0x43 ,0x9d ,0xf9 ,0x04 ,0xcb , +0xc9 ,0x82 ,0x6c ,0xee ,0xd4 ,0x9c ,0xbd ,0x1c , +0x4d ,0x54 ,0x29 ,0x83 ,0xa9 ,0x5e ,0xaa ,0x10 , +0xa7 ,0xc1 ,0x04 ,0x29 ,0x28 ,0x31 ,0x3a ,0x79 , +0x31 ,0x32 ,0x39 ,0x3a ,0x00 ,0x82 ,0x33 ,0xf1 , +0x91 ,0xe3 ,0xf2 ,0x12 ,0x93 ,0x5a ,0xed ,0x0c , +0x9d ,0xec ,0x67 ,0xaa ,0xa7 ,0x97 ,0x7f ,0x9f , +0x5e ,0xef ,0x6a ,0x3e ,0xa4 ,0x7f ,0x9b ,0xed , +0x65 ,0xd7 ,0xba ,0x40 ,0x6d ,0xe1 ,0xde ,0xc1 , +0x14 ,0x4c ,0x9b ,0x28 ,0x5c ,0x03 ,0x8e ,0x1a , +0xd4 ,0x1b ,0x80 ,0x1b ,0x07 ,0xd6 ,0x84 ,0x04 , +0x49 ,0x6c ,0x1b ,0x08 ,0x84 ,0x15 ,0x54 ,0x62 , +0xca ,0xd5 ,0x75 ,0xff ,0xc8 ,0xb3 ,0x81 ,0x76 , +0x82 ,0x91 ,0x35 ,0x80 ,0x20 ,0x73 ,0x2a ,0x21 , +0xca ,0x22 ,0x06 ,0xa7 ,0x73 ,0x99 ,0x75 ,0x7e , +0x5e ,0xa6 ,0x09 ,0x59 ,0x66 ,0x2c ,0xcd ,0xb1 , +0x8d ,0x3b ,0xc0 ,0x68 ,0xc5 ,0x41 ,0xa0 ,0x9d , +0x82 ,0x15 ,0xc4 ,0xdd ,0x47 ,0x1c ,0x5b ,0xa9 , +0x74 ,0x18 ,0xaf ,0x72 ,0x63 ,0x6b ,0x0a ,0x4e , +0x95 ,0x09 ,0x7a ,0xb5 ,0x4b ,0x98 ,0x85 ,0xb9 , +0x6d ,0x9d ,0x3b ,0x73 ,0x8c ,0x29 ,0x29 ,0x29 , +}; + +static char sig_dump[] = { +0x28 ,0x37 ,0x3a ,0x73 ,0x69 ,0x67 ,0x2d ,0x76 , +0x61 ,0x6c ,0x28 ,0x33 ,0x3a ,0x64 ,0x73 ,0x61 , +0x28 ,0x31 ,0x3a ,0x72 ,0x32 ,0x30 ,0x3a ,0xb6 , +0x60 ,0x37 ,0xef ,0x02 ,0x7c ,0x7c ,0x6e ,0x4f , +0x66 ,0x8c ,0x7c ,0x26 ,0x77 ,0xd9 ,0x33 ,0x90 , +0xba ,0x7c ,0xfb ,0x29 ,0x28 ,0x31 ,0x3a ,0x73 , +0x32 ,0x30 ,0x3a ,0x83 ,0xc0 ,0x84 ,0x72 ,0xc6 , +0x1c ,0x85 ,0x6f ,0x8b ,0x9b ,0xb0 ,0x38 ,0x38 , +0xb2 ,0xb6 ,0xdf ,0x1c ,0x52 ,0x96 ,0x1b ,0x29 , +0x29 ,0x29 , +}; + +extern gcry_pk_spec_t _gcry_pubkey_spec_dsa; + +static void +dsa_sexp_test (void ) +{ +gcry_sexp_t sign_parms, sign_parms_invalid, pubkey, sig; +int rc; +grub_size_t errof; + + rc =_gcry_sexp_build (&sign_parms_invalid, &errof, +"(data (value \"hi\"))\n" ); +grub_test_assert (rc ==0 ,"sexp build failed" ); + + rc =_gcry_sexp_build (&sign_parms, &errof, +"(data (value \"hello\"))\n" ); +grub_test_assert (rc ==0 ,"sexp build failed" ); + rc =_gcry_sexp_new (&pubkey, pubkey_dump,sizeof (pubkey_dump),0 ); +grub_test_assert (rc ==0 ,"sexp new failed" ); + rc =_gcry_sexp_new (&sig, sig_dump,sizeof (sig_dump),0 ); +grub_test_assert (rc ==0 ,"sexp new failed" ); + rc = _gcry_pubkey_spec_dsa.verify (sig, sign_parms, pubkey); +grub_test_assert (rc ==0 ,"signature verification failed: %d" , rc); + rc = _gcry_pubkey_spec_dsa.verify (sig, sign_parms_invalid, pubkey); +grub_test_assert (rc !=0 ,"signature verification succeded wrongly" ); +} + +GRUB_FUNCTIONAL_TEST (dsa_sexp_test, dsa_sexp_test);
grub-core/tests/rsa_sexp_test.c new file +99 -0
99 lines not on this page · raw message
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 4/7] Add DSA and RSA SEXP tests
Quoted 18 lines · 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 <[email protected]>--- grub-core/tests/dsa_sexp_test.c | 125 ++++++++++++++++++++++++++++++++ grub-core/tests/rsa_sexp_test.c | 99 +++++++++++++++++++++++++ 2 files changed, 224 insertions(+) create mode 100644 grub-core/tests/dsa_sexp_test.c create mode 100644 grub-core/tests/rsa_sexp_test.cgrub-core/tests/dsa_sexp_test.c new file +0
-0
grub-core/tests/dsa_sexp_test.c line 3
Quoted 3 lines
grub-core/tests/dsa_sexp_test.c new file +3
-0@@ -0,0 +1,125 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2024 Free Software Foundation, Inc.
s/2024/2025/
Please fix the same issue in the second file too...
Quoted 70 lines
grub-core/tests/dsa_sexp_test.c new file +70
-0+* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include <grub/test.h> +#include <grub/crypto.h> +#include <grub/gcrypt/gcrypt.h> + +GRUB_MOD_LICENSE ("GPLv3+" ); + +static char pubkey_dump[] = { +0x28 ,0x31 ,0x30 ,0x3a ,0x70 ,0x75 ,0x62 ,0x6c , +0x69 ,0x63 ,0x2d ,0x6b ,0x65 ,0x79 ,0x28 ,0x33 , +0x3a ,0x64 ,0x73 ,0x61 ,0x28 ,0x31 ,0x3a ,0x70 , +0x31 ,0x32 ,0x39 ,0x3a ,0x00 ,0xc0 ,0x50 ,0x14 , +0x4c ,0x97 ,0x10 ,0x69 ,0x07 ,0xa7 ,0xe9 ,0x2b , +0xe5 ,0xc6 ,0x88 ,0xe1 ,0x6d ,0xd8 ,0x38 ,0x28 , +0x09 ,0x49 ,0x5b ,0xe8 ,0xa3 ,0x04 ,0xb8 ,0xc4 , +0x6e ,0x98 ,0xc1 ,0xc2 ,0xb0 ,0x2a ,0xe0 ,0xe2 , +0x1a ,0x30 ,0xd2 ,0xdb ,0x45 ,0x1a ,0x88 ,0x80 , +0x28 ,0x24 ,0xb0 ,0xbf ,0xc2 ,0xbd ,0xe9 ,0xf6 , +0x9d ,0xa2 ,0x01 ,0x94 ,0xe6 ,0x7f ,0xa0 ,0xb6 , +0xe4 ,0x39 ,0xfc ,0x54 ,0xba ,0x99 ,0xb6 ,0xbe , +0x39 ,0xee ,0xa5 ,0xd9 ,0xa0 ,0x35 ,0x3c ,0x2d , +0x3e ,0x96 ,0xc3 ,0x96 ,0xa5 ,0x0d ,0x2b ,0xbf , +0x3b ,0xa3 ,0xe2 ,0xe8 ,0x89 ,0xed ,0x60 ,0xe0 , +0x43 ,0x61 ,0xb6 ,0x73 ,0xf6 ,0xa7 ,0xb4 ,0x56 , +0x76 ,0x04 ,0xf7 ,0x8b ,0xf1 ,0x84 ,0xaa ,0x3e , +0xe0 ,0x08 ,0xad ,0xdd ,0xc2 ,0x36 ,0xfd ,0x3d , +0xd0 ,0xad ,0xf4 ,0x3a ,0x7e ,0x80 ,0x8c ,0x52 , +0x2b ,0x04 ,0xa8 ,0x03 ,0x27 ,0x29 ,0x28 ,0x31 , +0x3a ,0x71 ,0x32 ,0x31 ,0x3a ,0x00 ,0xd5 ,0x34 , +0xd2 ,0xc5 ,0x1c ,0x26 ,0xdf ,0xb0 ,0xba ,0x78 , +0x75 ,0xe5 ,0xe9 ,0x36 ,0x6b ,0x04 ,0x03 ,0xe2 , +0x57 ,0x3f ,0x29 ,0x28 ,0x31 ,0x3a ,0x67 ,0x31 , +0x32 ,0x38 ,0x3a ,0x3b ,0xa0 ,0xac ,0xa3 ,0xa1 , +0xd1 ,0x04 ,0x23 ,0x5f ,0x9f ,0xbc ,0x6d ,0x9e , +0x88 ,0x2a ,0x28 ,0xc1 ,0x48 ,0xaf ,0xa5 ,0x17 , +0x59 ,0x3a ,0x17 ,0x33 ,0x56 ,0xaa ,0x8d ,0x27 , +0x64 ,0xfe ,0x8e ,0x8a ,0x2e ,0xba ,0xf2 ,0x66 , +0xcc ,0x66 ,0xbd ,0xa4 ,0xfe ,0xa9 ,0x07 ,0x0d , +0xae ,0x8c ,0x9f ,0x70 ,0xf7 ,0x87 ,0xaa ,0x01 , +0x47 ,0x6b ,0xf9 ,0x0f ,0x09 ,0x18 ,0x42 ,0x76 , +0xc4 ,0xa3 ,0xb9 ,0x55 ,0x11 ,0x8d ,0xa3 ,0xa5 , +0x69 ,0x30 ,0x91 ,0xb7 ,0x03 ,0xef ,0x7f ,0x12 , +0xe6 ,0xb9 ,0x78 ,0x73 ,0xe0 ,0xc0 ,0x4f ,0xc6 , +0xd9 ,0x43 ,0x99 ,0x95 ,0x0b ,0x4d ,0x58 ,0xd3 , +0x6b ,0x76 ,0xb0 ,0x6a ,0xcf ,0x68 ,0x6d ,0xf0 , +0xd9 ,0xc1 ,0x88 ,0x43 ,0x9d ,0xf9 ,0x04 ,0xcb , +0xc9 ,0x82 ,0x6c ,0xee ,0xd4 ,0x9c ,0xbd ,0x1c , +0x4d ,0x54 ,0x29 ,0x83 ,0xa9 ,0x5e ,0xaa ,0x10 , +0xa7 ,0xc1 ,0x04 ,0x29 ,0x28 ,0x31 ,0x3a ,0x79 , +0x31 ,0x32 ,0x39 ,0x3a ,0x00 ,0x82 ,0x33 ,0xf1 , +0x91 ,0xe3 ,0xf2 ,0x12 ,0x93 ,0x5a ,0xed ,0x0c , +0x9d ,0xec ,0x67 ,0xaa ,0xa7 ,0x97 ,0x7f ,0x9f , +0x5e ,0xef ,0x6a ,0x3e ,0xa4 ,0x7f ,0x9b ,0xed , +0x65 ,0xd7 ,0xba ,0x40 ,0x6d ,0xe1 ,0xde ,0xc1 , +0x14 ,0x4c ,0x9b ,0x28 ,0x5c ,0x03 ,0x8e ,0x1a , +0xd4 ,0x1b ,0x80 ,0x1b ,0x07 ,0xd6 ,0x84 ,0x04 , +0x49 ,0x6c ,0x1b ,0x08 ,0x84 ,0x15 ,0x54 ,0x62 ,
grub-core/tests/dsa_sexp_test.c line 84
Quoted 10 lines
grub-core/tests/dsa_sexp_test.c new file +10
-0+0xca ,0xd5 ,0x75 ,0xff ,0xc8 ,0xb3 ,0x81 ,0x76 , +0x82 ,0x91 ,0x35 ,0x80 ,0x20 ,0x73 ,0x2a ,0x21 , +0xca ,0x22 ,0x06 ,0xa7 ,0x73 ,0x99 ,0x75 ,0x7e , +0x5e ,0xa6 ,0x09 ,0x59 ,0x66 ,0x2c ,0xcd ,0xb1 , +0x8d ,0x3b ,0xc0 ,0x68 ,0xc5 ,0x41 ,0xa0 ,0x9d , +0x82 ,0x15 ,0xc4 ,0xdd ,0x47 ,0x1c ,0x5b ,0xa9 , +0x74 ,0x18 ,0xaf ,0x72 ,0x63 ,0x6b ,0x0a ,0x4e , +0x95 ,0x09 ,0x7a ,0xb5 ,0x4b ,0x98 ,0x85 ,0xb9 , + 0x6d, 0x9d, 0x3b, 0x73, 0x8c, 0x29, 0x29, 0x29, +};
Where do these numbers come from?
grub-core/tests/dsa_sexp_test.c line 97
Quoted 12 lines
grub-core/tests/dsa_sexp_test.c new file +12
-0+static char sig_dump[] = { +0x28 ,0x37 ,0x3a ,0x73 ,0x69 ,0x67 ,0x2d ,0x76 , +0x61 ,0x6c ,0x28 ,0x33 ,0x3a ,0x64 ,0x73 ,0x61 , +0x28 ,0x31 ,0x3a ,0x72 ,0x32 ,0x30 ,0x3a ,0xb6 , +0x60 ,0x37 ,0xef ,0x02 ,0x7c ,0x7c ,0x6e ,0x4f , +0x66 ,0x8c ,0x7c ,0x26 ,0x77 ,0xd9 ,0x33 ,0x90 , +0xba ,0x7c ,0xfb ,0x29 ,0x28 ,0x31 ,0x3a ,0x73 , +0x32 ,0x30 ,0x3a ,0x83 ,0xc0 ,0x84 ,0x72 ,0xc6 , +0x1c ,0x85 ,0x6f ,0x8b ,0x9b ,0xb0 ,0x38 ,0x38 , +0xb2 ,0xb6 ,0xdf ,0x1c ,0x52 ,0x96 ,0x1b ,0x29 , +0x29 ,0x29 , +};
Ditto. Similar problems are in the second file...
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 4/7] Add DSA and RSA SEXP tests
Quoted 102 lines · Daniel Kiper
Quoted 5 lines · 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 <[email protected]>Review
Quoted 8 lines
--- grub-core/tests/dsa_sexp_test.c | 125 ++++++++++++++++++++++++++++++++ grub-core/tests/rsa_sexp_test.c | 99 +++++++++++++++++++++++++ 2 files changed, 224 insertions(+) create mode 100644 grub-core/tests/dsa_sexp_test.c create mode 100644 grub-core/tests/rsa_sexp_test.c(quoted diff) +0
-0
b/grub-core/tests/dsa_sexp_test.cgrub-core/tests/dsa_sexp_test.c line 3
Quoted 8 lines
new file mode 100644
index 000000000..5b7b7b143grub-core/tests/dsa_sexp_test.c new file +3
-0@@ -0,0 +1,125 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2024 Free Software Foundation, Inc. s/2024/2025/
Please fix the same issue in the second file too...
Quoted 74 lines
grub-core/tests/dsa_sexp_test.c new file +74
-0+* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include <grub/test.h> +#include <grub/crypto.h> +#include <grub/gcrypt/gcrypt.h> + +GRUB_MOD_LICENSE ("GPLv3+" ); + +static char pubkey_dump[] = { +0x28 ,0x31 ,0x30 ,0x3a ,0x70 ,0x75 ,0x62 ,0x6c , +0x69 ,0x63 ,0x2d ,0x6b ,0x65 ,0x79 ,0x28 ,0x33 , +0x3a ,0x64 ,0x73 ,0x61 ,0x28 ,0x31 ,0x3a ,0x70 , +0x31 ,0x32 ,0x39 ,0x3a ,0x00 ,0xc0 ,0x50 ,0x14 , +0x4c ,0x97 ,0x10 ,0x69 ,0x07 ,0xa7 ,0xe9 ,0x2b , +0xe5 ,0xc6 ,0x88 ,0xe1 ,0x6d ,0xd8 ,0x38 ,0x28 , +0x09 ,0x49 ,0x5b ,0xe8 ,0xa3 ,0x04 ,0xb8 ,0xc4 , +0x6e ,0x98 ,0xc1 ,0xc2 ,0xb0 ,0x2a ,0xe0 ,0xe2 , +0x1a ,0x30 ,0xd2 ,0xdb ,0x45 ,0x1a ,0x88 ,0x80 , +0x28 ,0x24 ,0xb0 ,0xbf ,0xc2 ,0xbd ,0xe9 ,0xf6 , +0x9d ,0xa2 ,0x01 ,0x94 ,0xe6 ,0x7f ,0xa0 ,0xb6 , +0xe4 ,0x39 ,0xfc ,0x54 ,0xba ,0x99 ,0xb6 ,0xbe , +0x39 ,0xee ,0xa5 ,0xd9 ,0xa0 ,0x35 ,0x3c ,0x2d , +0x3e ,0x96 ,0xc3 ,0x96 ,0xa5 ,0x0d ,0x2b ,0xbf , +0x3b ,0xa3 ,0xe2 ,0xe8 ,0x89 ,0xed ,0x60 ,0xe0 , +0x43 ,0x61 ,0xb6 ,0x73 ,0xf6 ,0xa7 ,0xb4 ,0x56 , +0x76 ,0x04 ,0xf7 ,0x8b ,0xf1 ,0x84 ,0xaa ,0x3e , +0xe0 ,0x08 ,0xad ,0xdd ,0xc2 ,0x36 ,0xfd ,0x3d , +0xd0 ,0xad ,0xf4 ,0x3a ,0x7e ,0x80 ,0x8c ,0x52 , +0x2b ,0x04 ,0xa8 ,0x03 ,0x27 ,0x29 ,0x28 ,0x31 , +0x3a ,0x71 ,0x32 ,0x31 ,0x3a ,0x00 ,0xd5 ,0x34 , +0xd2 ,0xc5 ,0x1c ,0x26 ,0xdf ,0xb0 ,0xba ,0x78 , +0x75 ,0xe5 ,0xe9 ,0x36 ,0x6b ,0x04 ,0x03 ,0xe2 , +0x57 ,0x3f ,0x29 ,0x28 ,0x31 ,0x3a ,0x67 ,0x31 , +0x32 ,0x38 ,0x3a ,0x3b ,0xa0 ,0xac ,0xa3 ,0xa1 , +0xd1 ,0x04 ,0x23 ,0x5f ,0x9f ,0xbc ,0x6d ,0x9e , +0x88 ,0x2a ,0x28 ,0xc1 ,0x48 ,0xaf ,0xa5 ,0x17 , +0x59 ,0x3a ,0x17 ,0x33 ,0x56 ,0xaa ,0x8d ,0x27 , +0x64 ,0xfe ,0x8e ,0x8a ,0x2e ,0xba ,0xf2 ,0x66 , +0xcc ,0x66 ,0xbd ,0xa4 ,0xfe ,0xa9 ,0x07 ,0x0d , +0xae ,0x8c ,0x9f ,0x70 ,0xf7 ,0x87 ,0xaa ,0x01 , +0x47 ,0x6b ,0xf9 ,0x0f ,0x09 ,0x18 ,0x42 ,0x76 , +0xc4 ,0xa3 ,0xb9 ,0x55 ,0x11 ,0x8d ,0xa3 ,0xa5 , +0x69 ,0x30 ,0x91 ,0xb7 ,0x03 ,0xef ,0x7f ,0x12 , +0xe6 ,0xb9 ,0x78 ,0x73 ,0xe0 ,0xc0 ,0x4f ,0xc6 , +0xd9 ,0x43 ,0x99 ,0x95 ,0x0b ,0x4d ,0x58 ,0xd3 , +0x6b ,0x76 ,0xb0 ,0x6a ,0xcf ,0x68 ,0x6d ,0xf0 , +0xd9 ,0xc1 ,0x88 ,0x43 ,0x9d ,0xf9 ,0x04 ,0xcb , +0xc9 ,0x82 ,0x6c ,0xee ,0xd4 ,0x9c ,0xbd ,0x1c , +0x4d ,0x54 ,0x29 ,0x83 ,0xa9 ,0x5e ,0xaa ,0x10 , +0xa7 ,0xc1 ,0x04 ,0x29 ,0x28 ,0x31 ,0x3a ,0x79 , +0x31 ,0x32 ,0x39 ,0x3a ,0x00 ,0x82 ,0x33 ,0xf1 , +0x91 ,0xe3 ,0xf2 ,0x12 ,0x93 ,0x5a ,0xed ,0x0c , +0x9d ,0xec ,0x67 ,0xaa ,0xa7 ,0x97 ,0x7f ,0x9f , +0x5e ,0xef ,0x6a ,0x3e ,0xa4 ,0x7f ,0x9b ,0xed , +0x65 ,0xd7 ,0xba ,0x40 ,0x6d ,0xe1 ,0xde ,0xc1 , +0x14 ,0x4c ,0x9b ,0x28 ,0x5c ,0x03 ,0x8e ,0x1a , +0xd4 ,0x1b ,0x80 ,0x1b ,0x07 ,0xd6 ,0x84 ,0x04 , +0x49 ,0x6c ,0x1b ,0x08 ,0x84 ,0x15 ,0x54 ,0x62 , +0xca ,0xd5 ,0x75 ,0xff ,0xc8 ,0xb3 ,0x81 ,0x76 , +0x82 ,0x91 ,0x35 ,0x80 ,0x20 ,0x73 ,0x2a ,0x21 , +0xca ,0x22 ,0x06 ,0xa7 ,0x73 ,0x99 ,0x75 ,0x7e , +0x5e ,0xa6 ,0x09 ,0x59 ,0x66 ,0x2c ,0xcd ,0xb1 ,
Quoted 9 lines
grub-core/tests/dsa_sexp_test.c line 84
Quoted 6 lines
grub-core/tests/dsa_sexp_test.c new file +6
-0+0x8d ,0x3b ,0xc0 ,0x68 ,0xc5 ,0x41 ,0xa0 ,0x9d , +0x82 ,0x15 ,0xc4 ,0xdd ,0x47 ,0x1c ,0x5b ,0xa9 , +0x74 ,0x18 ,0xaf ,0x72 ,0x63 ,0x6b ,0x0a ,0x4e , +0x95 ,0x09 ,0x7a ,0xb5 ,0x4b ,0x98 ,0x85 ,0xb9 , + 0x6d, 0x9d, 0x3b, 0x73, 0x8c, 0x29, 0x29, 0x29, +};Where do these numbers come from?
Just a sample key I generated with gnupg. Added a comment
Quoted 16 lines
grub-core/tests/dsa_sexp_test.c line 97
Quoted 13 lines
grub-core/tests/dsa_sexp_test.c new file +12
-0+static char sig_dump[] = { +0x28 ,0x37 ,0x3a ,0x73 ,0x69 ,0x67 ,0x2d ,0x76 , +0x61 ,0x6c ,0x28 ,0x33 ,0x3a ,0x64 ,0x73 ,0x61 , +0x28 ,0x31 ,0x3a ,0x72 ,0x32 ,0x30 ,0x3a ,0xb6 , +0x60 ,0x37 ,0xef ,0x02 ,0x7c ,0x7c ,0x6e ,0x4f , +0x66 ,0x8c ,0x7c ,0x26 ,0x77 ,0xd9 ,0x33 ,0x90 , +0xba ,0x7c ,0xfb ,0x29 ,0x28 ,0x31 ,0x3a ,0x73 , +0x32 ,0x30 ,0x3a ,0x83 ,0xc0 ,0x84 ,0x72 ,0xc6 , +0x1c ,0x85 ,0x6f ,0x8b ,0x9b ,0xb0 ,0x38 ,0x38 , +0xb2 ,0xb6 ,0xdf ,0x1c ,0x52 ,0x96 ,0x1b ,0x29 , +0x29 ,0x29 , +};Ditto. Similar problems are in the second file...
Quoted 2 lines
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
PATCH 5/7 keccak: Disable acceleration with SSE asm
In reply to Vladimir SerbinenkoLibgcrypt 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.
--- .../lib/libgcrypt-patches/02_keccak_sse.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/02_keccak_sse.patch
grub-core/lib/libgcrypt-patches/02_keccak_sse.patch new file +23 -0
@@ -0,0 +1,23 @@ +commit b0cf06271da5fe20360953a53a47c69da89669cd +Author: Vladimir Serbinenko <[email protected]> +Date: Sun Apr 7 06:33:11 2024 +0300 + + keccak: Disable acceleration with SSE asm + + 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. + +diff --git a/grub-core/lib/libgcrypt/cipher/keccak.c b/grub-core/lib/libgcrypt/cipher/keccak.c +index 11e64b3e7..8b570263b 100644 +--- a/grub-core/lib/libgcrypt-grub/cipher/keccak.c ++++ b/grub-core/lib/libgcrypt-grub/cipher/keccak.c +@@ -251,7 +251,7 @@ keccak_absorb_lane32bi(u32 *lane, u32 x0, u32 x1) + /* Construct generic 64-bit implementation. */ + #ifdef USE_64BIT + +-#if __GNUC__ >= 4 && defined(__x86_64__) ++#if __GNUC__ >= 4 && defined(__x86_64__) && 0 + + static inline void absorb_lanes64_8(u64 *dst, const byte *in) + {
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 5/7] keccak: Disable acceleration with SSE asm
Quoted 16 lines · 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 <[email protected]>--- .../lib/libgcrypt-patches/02_keccak_sse.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/02_keccak_sse.patchgrub-core/lib/libgcrypt-patches/02_keccak_sse.patch new file +0
-0
grub-core/lib/libgcrypt-patches/02_keccak_sse.patch line 9
Quoted 9 lines
grub-core/lib/libgcrypt-patches/02_keccak_sse.patch new file +9
-0@@ -0,0 +1,23 @@ +commit b0cf06271da5fe20360953a53a47c69da89669cd +Author: Vladimir Serbinenko <[email protected]> +Date: Sun Apr 7 06:33:11 2024 +0300 + + keccak: Disable acceleration with SSE asm + + 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.
Please add your SOB here too. If you do that you can add
And it would be nice if you fix these warnings:
Applying: keccak: Disable acceleration with SSE asm .git/rebase-apply/patch:29: trailing whitespace.
.git/rebase-apply/patch:32: trailing whitespace.
warning: 2 lines add whitespace errors.
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 5/7] keccak: Disable acceleration with SSE asm
Quoted 31 lines · Daniel Kiper
Review
Quoted 11 lines · 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 <[email protected]>--- .../lib/libgcrypt-patches/02_keccak_sse.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/02_keccak_sse.patch(quoted diff) +0
-0
b/grub-core/lib/libgcrypt-patches/02_keccak_sse.patchQuoted 5 lines
new file mode 100644
index 000000000..c153518dagrub-core/lib/libgcrypt-patches/02_keccak_sse.patch line 9
Quoted 9 lines
grub-core/lib/libgcrypt-patches/02_keccak_sse.patch new file +9
-0@@ -0,0 +1,23 @@ +commit b0cf06271da5fe20360953a53a47c69da89669cd +Author: Vladimir Serbinenko <[email protected]> +Date: Sun Apr 7 06:33:11 2024 +0300 + + keccak: Disable acceleration with SSE asm + + 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.Please add your SOB here too. If you do that you can add
Quoted 9 lines
And it would be nice if you fix these warnings:
Applying: keccak: Disable acceleration with SSE asm .git/rebase-apply/patch:29: trailing whitespace.
.git/rebase-apply/patch:32: trailing whitespace.
warning: 2 lines add whitespace errors.
Impossible without breaking the patch
Quoted 3 lines
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
PATCH 6/7 libgcrypt: Fix coverity warnings
In reply to Vladimir Serbinenko--- .../lib/libgcrypt-patches/03_coverity.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/03_coverity.patch
grub-core/lib/libgcrypt-patches/03_coverity.patch new file +45 -0
@@ -0,0 +1,45 @@ +diff --git a/grub-core/lib/libgcrypt/mpi/mpiutil.c b/grub-core/lib/libgcrypt/mpi/mpiutil.c +index 3a372374f..dc53db09d 100644 +--- a/grub-core/lib/libgcrypt-grub/mpi/mpiutil.c ++++ b/grub-core/lib/libgcrypt-grub/mpi/mpiutil.c +@@ -443,6 +443,9 @@ _gcry_mpi_alloc_like( gcry_mpi_t a ) + int n = (a->sign+7)/8; + void *p = _gcry_is_secure(a->d)? xtrymalloc_secure (n) + : xtrymalloc (n); ++ if ( !p ) { ++ _gcry_fatal_error (GPG_ERR_ENOMEM, NULL); ++ } + memcpy( p, a->d, n ); + b = mpi_set_opaque( NULL, p, a->sign ); + } +diff --git a/grub-core/lib/libgcrypt/src/sexp.c b/grub-core/lib/libgcrypt/src/sexp.c +index d15f1a790..250559f75 100644 +--- a/grub-core/lib/libgcrypt-grub/src/sexp.c ++++ b/grub-core/lib/libgcrypt-grub/src/sexp.c +@@ -1157,6 +1157,17 @@ do_vsexp_sscan (gcry_sexp_t *retsexp, size_t *erroff, + } \ + } while (0) + ++#define MAKE_SPACE_EXTRA_CLEANUP(n, cleanup) do { \ ++ gpg_err_code_t _ms_err = make_space (&c, (n)); \ ++ if (_ms_err) \ ++ { \ ++ err = _ms_err; \ ++ *erroff = p - buffer; \ ++ cleanup; \ ++ goto leave; \ ++ } \ ++ } while (0) ++ + /* The STORE_LEN macro is used to store the length N at buffer P. */ + #define STORE_LEN(p,n) do { \ + DATALEN ashort = (n); \ +@@ -1368,7 +1379,7 @@ do_vsexp_sscan (gcry_sexp_t *retsexp, size_t *erroff, + goto leave; + } + +- MAKE_SPACE (datalen); ++ MAKE_SPACE_EXTRA_CLEANUP (datalen, xfree (b64buf)); + *c.pos++ = ST_DATA; + STORE_LEN (c.pos, datalen); + for (i = 0; i < datalen; i++)
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 6/7] libgcrypt: Fix coverity warnings
On Tue, Apr 01, 2025 at 03:58:57PM +0300, Vladimir Serbinenko wrote:
Please split this patch into (probably) three and add CID to each one. Good example is in commit 4dc616657 (loader/i386/bsd: Use safe math to avoid underflow). Of course patches should land in grub-core/lib/libgcrypt-patches.
Did you report these issues to libgcrypt maintainers?
And...
Applying: libgcrypt: Fix coverity warnings .git/rebase-apply/patch:17: space before tab in indent.
int n = (a->sign+7)/8;
.git/rebase-apply/patch:18: space before tab in indent.
void *p = _gcry_is_secure(a->d)? xtrymalloc_secure (n)
.git/rebase-apply/patch:23: space before tab in indent.
memcpy( p, a->d, n );
.git/rebase-apply/patch:24: space before tab in indent.
b = mpi_set_opaque( NULL, p, a->sign );.git/rebase-apply/patch:33: trailing whitespace.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.
By the way, when I run bootstrap I can these warnings:
Importing libgcrypt...
WARNING: C file isn't a module: blake2.c
WARNING: C file isn't a module: ecc-curves.c
WARNING: C file isn't a module: ecc-ecdh.c
WARNING: C file isn't a module: ecc-ecdsa.c
WARNING: C file isn't a module: ecc-eddsa.c
WARNING: C file isn't a module: ecc-gost.c
WARNING: C file isn't a module: ecc-misc.c
WARNING: C file isn't a module: ecc-sm2.c
WARNING: C file isn't a module: gost-s-box.c
WARNING: C file isn't a module: poly1305.c
WARNING: C file isn't a module: primegen.c
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 6/7] libgcrypt: Fix coverity warnings
Quoted 7 lines · Daniel Kiper
On Tue, Apr 01, 2025 at 03:58:57PM +0300, Vladimir Serbinenko wrote:
Please split this patch into (probably) three and add CID to each one. Good example is in commit
4dc616657(loader/i386/bsd: Use safe math to avoid underflow). Of course patches should land in grub-core/lib/libgcrypt-patches.
Done
Quoted 3 lines
Did you report these issues to libgcrypt maintainers?
Not yet
Quoted 32 lines
And...
Applying: libgcrypt: Fix coverity warnings .git/rebase-apply/patch:17: space before tab in indent.
int n = (a->sign+7)/8; .git/rebase-apply/patch:18: space before tab in indent. void *p = _gcry_is_secure(a->d)? xtrymalloc_secure (n) .git/rebase-apply/patch:23: space before tab in indent. memcpy( p, a->d, n ); .git/rebase-apply/patch:24: space before tab in indent. b = mpi_set_opaque( NULL, p, a->sign );.git/rebase-apply/patch:33: trailing whitespace.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.By the way, when I run bootstrap I can these warnings:
Importing libgcrypt...
WARNING: C file isn't a module:blake2.c
WARNING: C file isn't a module:ecc-curves.c
WARNING: C file isn't a module:ecc-ecdh.c
WARNING: C file isn't a module:ecc-ecdsa.c
WARNING: C file isn't a module:ecc-eddsa.c
WARNING: C file isn't a module:ecc-gost.c
WARNING: C file isn't a module:ecc-misc.c
WARNING: C file isn't a module:ecc-sm2.c
WARNING: C file isn't a module:gost-s-box.c
WARNING: C file isn't a module:poly1305.c
WARNING: C file isn't a module:primegen.c
Quoted 2 lines
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
PATCH 7/7 Remove now unneeded gcrypt compilation flag
In reply to Vladimir Serbinenko--- conf/Makefile.common | 2 +- util/import_gcry.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
conf/Makefile.common +1 -1
@@ -82,7 +82,7 @@ CFLAGS_POSIX = -fno-builtin CPPFLAGS_POSIX = -I$(top_srcdir)/grub-core/lib/posix_wrap CFLAGS_GCRY = -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-redundant-decls -Wno-undef $(CFLAGS_POSIX) -CPPFLAGS_GCRY = -I$(top_srcdir)/grub-core/lib/libgcrypt_wrap $(CPPFLAGS_POSIX) -D_GCRYPT_IN_LIBGCRYPT=1 -D_GCRYPT_CONFIG_H_INCLUDED=1 -DHAVE_STRTOUL=1 -I$(top_srcdir)/include/grub/gcrypt +CPPFLAGS_GCRY = -I$(top_srcdir)/grub-core/lib/libgcrypt_wrap $(CPPFLAGS_POSIX) -D_GCRYPT_IN_LIBGCRYPT=1 -D_GCRYPT_CONFIG_H_INCLUDED=1 -I$(top_srcdir)/include/grub/gcrypt CPPFLAGS_EFIEMU = -I$(top_srcdir)/grub-core/efiemu/runtime
util/import_gcry.py +1 -0
@@ -608,6 +608,7 @@ for src in sorted (os.listdir (os.path.join (indir, "src"))): if src == "g10lib.h": fw.write("#include <cipher_wrap.h>\n") fw.write("#include <grub/crypto.h>\n") + fw.write("#include <stdlib.h>\n") fw.write (f.read ().replace ("(printf,f,a)", "(__printf__,f,a)").replace ("#include \"../compat/libcompat.h\"", "").replace("#define N_(a) (a)", "")) f.close () fw.close ()
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 7/7] Remove now unneeded gcrypt compilation flag
On Tue, Apr 01, 2025 at 03:58:58PM +0300, Vladimir Serbinenko wrote:
Could you explain why this patch is needed in the commit message? Why change in util/import_gcry.py is needed?
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 3 lines · Vladimir Serbinenko
We currently use an old version of libcrypt which results in us having fewer ciphers and missing on many other improvements.
Could you upgrade the libgcrypt to the latest version, i.e. 1.11.0?
Additionally, could you document how to prepare the lib for import in the commit message and docs? Good examples are in the commit 9a26abbc3 (libtasn1: Import libtasn1-4.19.0) and commit 3d60732f9 (libtasn1: Add the documentation).
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 7 lines · Daniel Kiper
Quoted 3 lines · Vladimir Serbinenko
We currently use an old version of libcrypt which results in us having fewer ciphers and missing on many other improvements.
Could you upgrade the libgcrypt to the latest version, i.e. 1.11.0?
Done
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel