Pedro Monreal Gonzalez
c1414c55a9
- Update to 1.11.0: * New and extended interfaces: - Add an API for Key Encapsulation Mechanism (KEM). [T6755] - Add Streamlined NTRU Prime sntrup761 algorithm. [rCcf9923e1a5] - Add Kyber algorithm according to FIPS 203 ipd 2023-08-24. [rC18e5c0d268] - Add Classic McEliece algorithm. [rC003367b912] - Add One-Step KDF with hash and MAC. [T5964] - Add KDF algorithm HKDF of RFC-5869. [T5964] - Add KDF algorithm X963KDF for use in CMS. [rC3abac420b3] - Add GMAC-SM4 and Poly1305-SM4. [rCd1ccc409d4] - Add ARIA block cipher algorithm. [rC316c6d7715] - Add explicit FIPS indicators for MD and MAC algorithms. [T6376] - Add support for SHAKE as MGF in RSA. [T6557] - Add gcry_md_read support for SHAKE algorithms. [T6539] - Add gcry_md_hash_buffers_ext function. [T7035] - Add cSHAKE hash algorithm. [rC065b3f4e02] - Support internal generation of IV for AEAD cipher mode. [T4873] * Performance: - Add SM3 ARMv8/AArch64/CE assembly implementation. [rCfe891ff4a3] - Add SM4 ARMv8/AArch64 assembly implementation. [rCd8825601f1] - Add SM4 GFNI/AVX2 and GFI/AVX512 implementation. [rC5095d60af4,rCeaed633c16] - Add SM4 ARMv9 SVE CE assembly implementation. [rC2dc2654006] - Add PowerPC vector implementation of SM4. [rC0b2da804ee] - Optimize ChaCha20 and Poly1305 for PPC P10 LE. [T6006] - Add CTR32LE bulk acceleration for AES on PPC. [rC84f2e2d0b5] - Add generic bulk acceleration for CTR32LE mode (GCM-SIV) for SM4 and Camellia. [rCcf956793af] - Add GFNI/AVX2 implementation of Camellia. [rC4e6896eb9f] - Add AVX2 and AVX512 accelerated implementations for GHASH (GCM) and POLYVAL (GCM-SIV). [rCd857e85cb4, rCe6f3600193] OBS-URL: https://build.opensuse.org/request/show/1183811 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=180
184 lines
8.0 KiB
Diff
184 lines
8.0 KiB
Diff
Index: libgcrypt-1.10.3/random/Makefile.am
|
|
===================================================================
|
|
--- libgcrypt-1.10.3.orig/random/Makefile.am
|
|
+++ libgcrypt-1.10.3/random/Makefile.am
|
|
@@ -21,7 +21,7 @@
|
|
# Need to include ../src in addition to top_srcdir because gcrypt.h is
|
|
# a built header.
|
|
AM_CPPFLAGS = -I../src -I$(top_srcdir)/src
|
|
-AM_CFLAGS = $(GPG_ERROR_CFLAGS)
|
|
+AM_CFLAGS = $(GPG_ERROR_CFLAGS) -ljitterentropy
|
|
|
|
noinst_LTLIBRARIES = librandom.la
|
|
|
|
@@ -45,14 +45,7 @@ rndoldlinux.c \
|
|
rndegd.c \
|
|
rndunix.c \
|
|
rndw32.c \
|
|
-rndw32ce.c \
|
|
-jitterentropy-gcd.c jitterentropy-gcd.h \
|
|
-jitterentropy-health.c jitterentropy-health.h \
|
|
-jitterentropy-noise.c jitterentropy-noise.h \
|
|
-jitterentropy-sha3.c jitterentropy-sha3.h \
|
|
-jitterentropy-timer.c jitterentropy-timer.h \
|
|
-jitterentropy-base.h \
|
|
-jitterentropy-base.c jitterentropy.h jitterentropy-base-user.h
|
|
+rndw32ce.c
|
|
|
|
# The rndjent module needs to be compiled without optimization. */
|
|
if ENABLE_O_FLAG_MUNGING
|
|
@@ -61,20 +54,8 @@ else
|
|
o_flag_munging = cat
|
|
endif
|
|
|
|
-rndjent.o: $(srcdir)/rndjent.c jitterentropy-base-user.h \
|
|
- $(srcdir)/jitterentropy-gcd.c $(srcdir)/jitterentropy-gcd.h \
|
|
- $(srcdir)/jitterentropy-health.c $(srcdir)/jitterentropy-health.h \
|
|
- $(srcdir)/jitterentropy-noise.c $(srcdir)/jitterentropy-noise.h \
|
|
- $(srcdir)/jitterentropy-sha3.c $(srcdir)/jitterentropy-sha3.h \
|
|
- $(srcdir)/jitterentropy-timer.c $(srcdir)/jitterentropy-timer.h \
|
|
- $(srcdir)/jitterentropy-base.c $(srcdir)/jitterentropy.h
|
|
+rndjent.o: $(srcdir)/rndjent.c
|
|
`echo $(COMPILE) -c $(srcdir)/rndjent.c | $(o_flag_munging) `
|
|
|
|
-rndjent.lo: $(srcdir)/rndjent.c jitterentropy-base-user.h \
|
|
- $(srcdir)/jitterentropy-gcd.c $(srcdir)/jitterentropy-gcd.h \
|
|
- $(srcdir)/jitterentropy-health.c $(srcdir)/jitterentropy-health.h \
|
|
- $(srcdir)/jitterentropy-noise.c $(srcdir)/jitterentropy-noise.h \
|
|
- $(srcdir)/jitterentropy-sha3.c $(srcdir)/jitterentropy-sha3.h \
|
|
- $(srcdir)/jitterentropy-timer.c $(srcdir)/jitterentropy-timer.h \
|
|
- $(srcdir)/jitterentropy-base.c $(srcdir)/jitterentropy.h
|
|
+rndjent.lo: $(srcdir)/rndjent.c
|
|
`echo $(LTCOMPILE) -c $(srcdir)/rndjent.c | $(o_flag_munging) `
|
|
Index: libgcrypt-1.10.3/random/rndjent.c
|
|
===================================================================
|
|
--- libgcrypt-1.10.3.orig/random/rndjent.c
|
|
+++ libgcrypt-1.10.3/random/rndjent.c
|
|
@@ -94,17 +94,12 @@
|
|
* jitterentropy-user-base.h file. */
|
|
|
|
/* Tell jitterentropy* that all functions shall be static. */
|
|
-#define JENT_PRIVATE_COMPILE 1
|
|
+#undef JENT_PRIVATE_COMPILE
|
|
|
|
-#include "jitterentropy-base.c"
|
|
#ifdef JENT_CONF_ENABLE_INTERNAL_TIMER
|
|
#include <pthread.h>
|
|
#endif /* JENT_CONF_ENABLE_INTERNAL_TIMER */
|
|
-#include "jitterentropy-gcd.c"
|
|
-#include "jitterentropy-health.c"
|
|
-#include "jitterentropy-noise.c"
|
|
-#include "jitterentropy-sha3.c"
|
|
-#include "jitterentropy-timer.c"
|
|
+#include <jitterentropy.h>
|
|
|
|
/* This is the lock we use to serialize access to this RNG. The extra
|
|
* integer variable is only used to check the locking state; that is,
|
|
Index: libgcrypt-1.10.3/random/Makefile.in
|
|
===================================================================
|
|
--- libgcrypt-1.10.3.orig/random/Makefile.in
|
|
+++ libgcrypt-1.10.3/random/Makefile.in
|
|
@@ -147,12 +147,7 @@ am__v_at_1 =
|
|
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
|
depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
|
|
am__maybe_remake_depfiles = depfiles
|
|
-am__depfiles_remade = ./$(DEPDIR)/jitterentropy-base.Plo \
|
|
- ./$(DEPDIR)/jitterentropy-gcd.Plo \
|
|
- ./$(DEPDIR)/jitterentropy-health.Plo \
|
|
- ./$(DEPDIR)/jitterentropy-noise.Plo \
|
|
- ./$(DEPDIR)/jitterentropy-sha3.Plo \
|
|
- ./$(DEPDIR)/jitterentropy-timer.Plo \
|
|
+am__depfiles_remade = \
|
|
./$(DEPDIR)/random-csprng.Plo ./$(DEPDIR)/random-drbg.Plo \
|
|
./$(DEPDIR)/random-system.Plo ./$(DEPDIR)/random.Plo \
|
|
./$(DEPDIR)/rndegd.Plo ./$(DEPDIR)/rndgetentropy.Plo \
|
|
@@ -378,7 +373,7 @@ top_srcdir = @top_srcdir@
|
|
# Need to include ../src in addition to top_srcdir because gcrypt.h is
|
|
# a built header.
|
|
AM_CPPFLAGS = -I../src -I$(top_srcdir)/src
|
|
-AM_CFLAGS = $(GPG_ERROR_CFLAGS)
|
|
+AM_CFLAGS = $(GPG_ERROR_CFLAGS) -ljitterentropy
|
|
noinst_LTLIBRARIES = librandom.la
|
|
GCRYPT_MODULES = @GCRYPT_RANDOM@
|
|
librandom_la_DEPENDENCIES = $(GCRYPT_MODULES)
|
|
@@ -398,14 +393,7 @@ rndoldlinux.c \
|
|
rndegd.c \
|
|
rndunix.c \
|
|
rndw32.c \
|
|
-rndw32ce.c \
|
|
-jitterentropy-gcd.c jitterentropy-gcd.h \
|
|
-jitterentropy-health.c jitterentropy-health.h \
|
|
-jitterentropy-noise.c jitterentropy-noise.h \
|
|
-jitterentropy-sha3.c jitterentropy-sha3.h \
|
|
-jitterentropy-timer.c jitterentropy-timer.h \
|
|
-jitterentropy-base.h \
|
|
-jitterentropy-base.c jitterentropy.h jitterentropy-base-user.h
|
|
+rndw32ce.c
|
|
|
|
@ENABLE_O_FLAG_MUNGING_FALSE@o_flag_munging = cat
|
|
|
|
@@ -465,12 +453,6 @@ mostlyclean-compile:
|
|
distclean-compile:
|
|
-rm -f *.tab.c
|
|
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jitterentropy-base.Plo@am__quote@ # am--include-marker
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jitterentropy-gcd.Plo@am__quote@ # am--include-marker
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jitterentropy-health.Plo@am__quote@ # am--include-marker
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jitterentropy-noise.Plo@am__quote@ # am--include-marker
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jitterentropy-sha3.Plo@am__quote@ # am--include-marker
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jitterentropy-timer.Plo@am__quote@ # am--include-marker
|
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/random-csprng.Plo@am__quote@ # am--include-marker
|
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/random-drbg.Plo@am__quote@ # am--include-marker
|
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/random-system.Plo@am__quote@ # am--include-marker
|
|
@@ -641,12 +623,6 @@ clean-am: clean-generic clean-libtool cl
|
|
mostlyclean-am
|
|
|
|
distclean: distclean-am
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-base.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-gcd.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-health.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-noise.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-sha3.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-timer.Plo
|
|
-rm -f ./$(DEPDIR)/random-csprng.Plo
|
|
-rm -f ./$(DEPDIR)/random-drbg.Plo
|
|
-rm -f ./$(DEPDIR)/random-system.Plo
|
|
@@ -704,12 +680,6 @@ install-ps-am:
|
|
installcheck-am:
|
|
|
|
maintainer-clean: maintainer-clean-am
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-base.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-gcd.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-health.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-noise.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-sha3.Plo
|
|
- -rm -f ./$(DEPDIR)/jitterentropy-timer.Plo
|
|
-rm -f ./$(DEPDIR)/random-csprng.Plo
|
|
-rm -f ./$(DEPDIR)/random-drbg.Plo
|
|
-rm -f ./$(DEPDIR)/random-system.Plo
|
|
@@ -759,22 +729,10 @@ uninstall-am:
|
|
.PRECIOUS: Makefile
|
|
|
|
|
|
-rndjent.o: $(srcdir)/rndjent.c jitterentropy-base-user.h \
|
|
- $(srcdir)/jitterentropy-gcd.c $(srcdir)/jitterentropy-gcd.h \
|
|
- $(srcdir)/jitterentropy-health.c $(srcdir)/jitterentropy-health.h \
|
|
- $(srcdir)/jitterentropy-noise.c $(srcdir)/jitterentropy-noise.h \
|
|
- $(srcdir)/jitterentropy-sha3.c $(srcdir)/jitterentropy-sha3.h \
|
|
- $(srcdir)/jitterentropy-timer.c $(srcdir)/jitterentropy-timer.h \
|
|
- $(srcdir)/jitterentropy-base.c $(srcdir)/jitterentropy.h
|
|
+rndjent.o: $(srcdir)/rndjent.c
|
|
`echo $(COMPILE) -c $(srcdir)/rndjent.c | $(o_flag_munging) `
|
|
|
|
-rndjent.lo: $(srcdir)/rndjent.c jitterentropy-base-user.h \
|
|
- $(srcdir)/jitterentropy-gcd.c $(srcdir)/jitterentropy-gcd.h \
|
|
- $(srcdir)/jitterentropy-health.c $(srcdir)/jitterentropy-health.h \
|
|
- $(srcdir)/jitterentropy-noise.c $(srcdir)/jitterentropy-noise.h \
|
|
- $(srcdir)/jitterentropy-sha3.c $(srcdir)/jitterentropy-sha3.h \
|
|
- $(srcdir)/jitterentropy-timer.c $(srcdir)/jitterentropy-timer.h \
|
|
- $(srcdir)/jitterentropy-base.c $(srcdir)/jitterentropy.h
|
|
+rndjent.lo: $(srcdir)/rndjent.c
|
|
`echo $(LTCOMPILE) -c $(srcdir)/rndjent.c | $(o_flag_munging) `
|
|
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|