meta-openembedded/meta-oe/recipes-crypto
mark.yang 0d2b2b54fc
libmcrypt: fix build with gcc-15.0.1
* see more details: http://errors.yoctoproject.org/Errors/Details/850150/
    des.c:199:9: error: too many arguments to function 'spinit'; expected 0, have 1
    199 |         spinit(key);
        |         ^~~~~~ ~~~
    des.c:38:56: note: declared here
    38 | static void permute_ip(), permute_fp(), perminit_ip(), spinit(),
        |                                                        ^~~~~~

* Move function forward declarations to .h file to fix the following errors:
    tripledes.c: In function '_mcrypt_desinit':
    tripledes.c:198:18: error: passing argument 1 of 'perminit' from incompatible pointer type [-Wincompatible-pointer-types]
    198 |         perminit(&key->iperm, ip);
        |                  ^~~~~~~~~~~
        |                  |
        |                  char (*)[16][16][8]
    In file included from tripledes.c:23:
    tripledes.h:11:27: note: expected 'char (*)[16][8]' but argument is of type 'char (*)[16][16][8]'
    11 | static void perminit(char perm[][16][8], char p[64]);
        |                      ~~~~~^~~~~~~~~~~~~
    tripledes.c:199:18: error: passing argument 1 of 'perminit' from incompatible pointer type [-Wincompatible-pointer-types]
    199 |         perminit(&key->fperm, fp);
        |                  ^~~~~~~~~~~
        |                  |
        |                  char (*)[16][16][8]
    tripledes.h:11:27: note: expected 'char (*)[16][8]' but argument is of type 'char (*)[16][16][8]'
    11 | static void perminit(char perm[][16][8], char p[64]);
        |                      ~~~~~^~~~~~~~~~~~~

	Changed parameter from &key to key
	perminit(key->iperm, ip);
	perminit(key->fperm, fp);

Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-01 20:43:27 -07:00
..
botan botan: upgrade 3.6.1 -> 3.7.1 2025-02-10 08:45:35 -08:00
cryptsetup cryptsetup: demote udev runtime dependency to recommendation 2024-11-19 16:59:10 -08:00
fsverity-utils fsverity-utils: upgrade 1.5 -> 1.6 2025-03-20 09:04:50 -07:00
libkcapi libkcapi: Update HOMEPAGE url 2024-02-28 08:01:19 -08:00
libmcrypt libmcrypt: fix build with gcc-15.0.1 2025-04-01 20:43:27 -07:00
libsodium libsodium: upgrade 1.0.19 -> 1.0.20 2024-06-07 09:11:58 -07:00
libtomcrypt libtomcrypt: add PACKAGECONFIG for ltm enabled by default 2023-07-20 19:08:57 -07:00
monocypher Monocypher: Correct source URI and license 2024-01-19 09:51:06 -08:00
pkcs11-helper recipes: drop ${SRCPV} usage 2024-02-09 09:52:12 -08:00