dev-libs/nettle: update to 3.6

To build `net-libs/gnutls` 3.6.15, we need to also update
`dev-libs/nettle` to 3.6.
This commit is contained in:
Dongsu Park 2020-11-06 13:50:46 +01:00
parent 7a818340fa
commit 22155497c6
11 changed files with 282 additions and 1043 deletions

View File

@ -1,268 +0,0 @@
# ChangeLog for dev-libs/nettle
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*nettle-3.1.1 (09 Aug 2015)
*nettle-2.7.1-r4 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
+files/nettle-2.7-shared.patch, +metadata.xml, +nettle-2.7.1-r4.ebuild,
+nettle-3.1.1.ebuild:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
18 Sep 2015; Tobias Klausmann <klausman@gentoo.org> nettle-3.1.1.ebuild:
add alpha keyword
Gentoo-Bug: 560724
Package-Manager: portage-2.2.20.1
19 Sep 2015; Jeroen Roovers <jer@gentoo.org> nettle-3.1.1.ebuild:
Stable for PPC64 (bug #560724).
Package-Manager: portage-2.2.20.1
20 Sep 2015; Jeroen Roovers <jer@gentoo.org> nettle-3.1.1.ebuild:
Stable for HPPA PPC64 (bug #560724).
Package-Manager: portage-2.2.20.1
RepoMan-Options: --ignore-arches
24 Sep 2015; Agostino Sarubbo <ago@gentoo.org> nettle-3.1.1.ebuild:
amd64 stable wrt bug #560724
Package-Manager: portage-2.2.20.1
RepoMan-Options: --include-arches="amd64"
25 Sep 2015; Agostino Sarubbo <ago@gentoo.org> nettle-3.1.1.ebuild:
x86 stable wrt bug #560724
Package-Manager: portage-2.2.20.1
RepoMan-Options: --include-arches="x86"
16 Oct 2015; Mikle Kolyada <zlogene@gentoo.org> nettle-3.1.1.ebuild:
sparc stable wrt bug #560724
Package-Manager: portage-2.2.20.1
17 Oct 2015; Markus Meier <maekke@gentoo.org> nettle-3.1.1.ebuild:
arm stable, bug #560724
Package-Manager: portage-2.2.23
RepoMan-Options: --include-arches="arm"
12 Nov 2015; Agostino Sarubbo <ago@gentoo.org> nettle-3.1.1.ebuild:
ppc stable wrt bug #560724
Package-Manager: portage-2.2.20.1
RepoMan-Options: --include-arches="ppc"
18 Nov 2015; Agostino Sarubbo <ago@gentoo.org> nettle-3.1.1.ebuild:
ia64 stable wrt bug #560724
Package-Manager: portage-2.2.20.1
RepoMan-Options: --include-arches="ia64"
18 Nov 2015; Alon Bar-Lev <alonbl@gentoo.org> -nettle-2.7.1-r4.ebuild:
cleanup
Package-Manager: portage-2.2.20.1
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)
*nettle-3.2 (03 Feb 2016)
03 Feb 2016; Alon Bar-Lev <alonbl@gentoo.org> +nettle-3.2.ebuild:
version bump
Bug: 573646
Thanks: polynomial-c
Package-Manager: portage-2.2.26
04 Feb 2016; Tobias Klausmann <klausman@gentoo.org> nettle-3.2.ebuild:
add alpha keyword
Gentoo-Bug: 573646
Package-Manager: portage-2.2.27
04 Feb 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2.ebuild:
amd64 stable wrt bug #573646
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
04 Feb 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2.ebuild:
x86 stable wrt bug #573646
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
05 Feb 2016; Jeroen Roovers <jer@gentoo.org> nettle-3.2.ebuild:
Stable for PPC64 (bug #573646).
Package-Manager: portage-2.2.27
RepoMan-Options: --ignore-arches
05 Feb 2016; Jeroen Roovers <jer@gentoo.org> nettle-3.2.ebuild:
Stable for HPPA (bug #573646).
Package-Manager: portage-2.2.27
RepoMan-Options: --ignore-arches
14 Feb 2016; Markus Meier <maekke@gentoo.org> nettle-3.2.ebuild:
arm stable, bug #573646
Package-Manager: portage-2.2.27
RepoMan-Options: --include-arches="arm"
16 Mar 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2.ebuild:
ppc stable wrt bug #573646
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
19 Mar 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2.ebuild:
sparc stable wrt bug #573646
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
20 Mar 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2.ebuild:
ia64 stable wrt bug #573646
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="ia64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
04 Jun 2016; Alon Bar-Lev <alonbl@gentoo.org> -nettle-3.1.1.ebuild:
cleanup
Bug: 573646
04 Aug 2016; Alon Bar-Lev <alonbl@gentoo.org>
-files/nettle-2.7-shared.patch:
cleanup
Package-Manager: portage-2.2.28
*nettle-3.2-r1 (04 Aug 2016)
04 Aug 2016; Alon Bar-Lev <alonbl@gentoo.org>
+files/nettle-3.2-CVE-2016-6489.patch, +nettle-3.2-r1.ebuild:
fix CVE-2016-6489
Bug: 590484
Package-Manager: portage-2.2.28
14 Aug 2016; Jeroen Roovers <jer@gentoo.org> nettle-3.2-r1.ebuild:
Stable for HPPA PPC64 (bug #590484).
Package-Manager: portage-2.3.0
RepoMan-Options: --ignore-arches
18 Aug 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2-r1.ebuild:
amd64 stable wrt bug #590484
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
18 Aug 2016; Markus Meier <maekke@gentoo.org> nettle-3.2-r1.ebuild:
arm stable, bug #590484
Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="arm"
02 Sep 2016; Tobias Klausmann <klausman@gentoo.org> nettle-3.2-r1.ebuild:
3.2-r1: add alpha keyword
Gentoo-Bug: 590484
29 Sep 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2-r1.ebuild:
x86 stable wrt bug #590484
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
29 Sep 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2-r1.ebuild:
sparc stable wrt bug #590484
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
29 Sep 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2-r1.ebuild:
ppc stable wrt bug #590484
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
29 Sep 2016; Agostino Sarubbo <ago@gentoo.org> nettle-3.2-r1.ebuild:
ia64 stable wrt bug #590484
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="ia64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>

View File

@ -1,500 +0,0 @@
# ChangeLog for dev-libs/nettle
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nettle/ChangeLog,v 1.133 2015/07/30 13:19:46 alonbl Exp $
30 Jul 2015; Alon Bar-Lev <alonbl@gentoo.org> -nettle-2.7.1-r1.ebuild,
-nettle-2.7.1-r2.ebuild, -nettle-2.7.1-r3.ebuild, -nettle-2.7.1.ebuild:
Cleanup
30 Jul 2015; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1-r4.ebuild:
Stable for sparc, wrt bug #540892
21 Jun 2015; Mikle Kolyada <zlogene@gentoo.org> nettle-2.7.1-r4.ebuild:
alpha stable wrt bug #540892
11 Jun 2015; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1-r4.ebuild:
Stable for ppc, wrt bug #540892
01 Jun 2015; Jeroen Roovers <jer@gentoo.org> nettle-2.7.1-r4.ebuild:
Stable for HPPA (bug #540892).
29 May 2015; Mikle Kolyada <zlogene@gentoo.org> nettle-2.7.1-r4.ebuild:
arm stable wrt bug #540892
29 May 2015; Mikle Kolyada <zlogene@gentoo.org> nettle-2.7.1-r4.ebuild:
arm stable wrt bug #540892
28 May 2015; Jack Morgan <jmorgan@gentoo.org> nettle-2.7.1-r4.ebuild:
ppc64 stable wrt bug #540892
28 May 2015; Mikle Kolyada <zlogene@gentoo.org> nettle-2.7.1-r4.ebuild:
x86 stable wrt bug #540892
28 May 2015; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1-r4.ebuild:
Stable for amd64, wrt bug #540892
*nettle-3.1.1 (28 Apr 2015)
28 Apr 2015; Alon Bar-Lev <alonbl@gentoo.org> +nettle-3.1.1.ebuild,
-nettle-3.1.ebuild:
Version bump
26 Apr 2015; Alon Bar-Lev <alonbl@gentoo.org>
-files/nettle-1.14-make-as-needed.patch,
-files/nettle-2.0-binutils-2.22.patch, -nettle-1.15.ebuild:
Cleanup, bug#531426
10 Apr 2015; Michał Górny <mgorny@gentoo.org> nettle-3.1.ebuild:
Wrap version.h, bug #546104.
*nettle-3.1 (09 Apr 2015)
09 Apr 2015; Alon Bar-Lev <alonbl@gentoo.org> +nettle-3.1.ebuild:
Version bump, bug#512874
*nettle-2.7.1-r4 (27 Mar 2015)
27 Mar 2015; Alon Bar-Lev <alonbl@gentoo.org> +nettle-2.7.1-r4.ebuild:
Fix multilib issue, bug#543892
28 Feb 2015; Robin H. Johnson <robbat2@gentoo.org> nettle-2.7.1-r2.ebuild:
Oops, changed old r2 as well, revert.
*nettle-2.7.1-r3 (28 Feb 2015)
28 Feb 2015; Robin H. Johnson <robbat2@gentoo.org> +nettle-2.7.1-r3.ebuild,
nettle-2.7.1-r2.ebuild:
Bug #540942: gmp w/o 32-bit will cause nettle to compile successfully, but be
missing libhogweed, cascading to other build failures (eg rtmpdump); bump so
that anybody who installed nettle then gmp rebuilds nettle correctly.
16 Jan 2015; Raúl Porcel <armin76@gentoo.org> nettle-2.7.1-r1.ebuild:
alpha/arm64/ia64/s390/sparc stable wrt #525160
07 Dec 2014; Markus Meier <maekke@gentoo.org> nettle-2.7.1-r1.ebuild:
arm stable, bug #525160
06 Dec 2014; Jeroen Roovers <jer@gentoo.org> nettle-2.7.1-r1.ebuild:
Stable for HPPA (bug #525160).
*nettle-2.7.1-r2 (03 Dec 2014)
03 Dec 2014; Alon Bar-Lev <alonbl@gentoo.org> +nettle-2.7.1-r2.ebuild:
Use autotools-utils to perform autoreconf, add einstalldocs at multilib,
bug#531522
*nettle-1.15 (02 Dec 2014)
02 Dec 2014; Pacho Ramos <pacho@gentoo.org>
+files/nettle-1.14-make-as-needed.patch,
+files/nettle-2.0-binutils-2.22.patch, +nettle-1.15.ebuild:
Reintroduce as needed by current stable pike
02 Dec 2014; Alon Bar-Lev <alonbl@gentoo.org>
-files/nettle-1.14-make-as-needed.patch,
-files/nettle-2.0-binutils-2.22.patch, -files/nettle-2.4-darwin-shlink.patch,
-files/nettle-2.4-missing-libm-link.patch, -files/nettle-2.5-build-ar.patch,
-files/nettle-2.5-missing-libm-link.patch,
-files/nettle-2.5-static-libs.patch, -files/nettle-2.6-shared.patch,
-nettle-1.15.ebuild, -nettle-2.4.ebuild, -nettle-2.5-r1.ebuild,
-nettle-2.5.ebuild, -nettle-2.6.ebuild, -nettle-2.7.ebuild:
Cleanup, bug#531426
02 Dec 2014; Pacho Ramos <pacho@gentoo.org> nettle-2.7.1-r1.ebuild:
amd64/x86 stable, bug #525160
10 Nov 2014; Fabian Groffen <grobian@gentoo.org> nettle-2.7.1-r1.ebuild:
Fix for static-only platforms, such as FreeMiNT, bug #528794
10 Jun 2014; Mike Frysinger <vapier@gentoo.org> nettle-2.7.1-r1.ebuild,
nettle-2.7.1.ebuild:
Add arm64 love.
10 Jun 2014; Mike Frysinger <vapier@gentoo.org> nettle-2.7.1.ebuild:
Mark sh stable.
16 Feb 2014; Alon Bar-Lev <alonbl@gentoo.org> nettle-2.7.1-r1.ebuild:
Pull recent emul package, my bad, bug#501440
*nettle-2.7.1-r1 (16 Feb 2014)
16 Feb 2014; Alon Bar-Lev <alonbl@gentoo.org> +nettle-2.7.1-r1.ebuild:
Add multilib support, bug#493974, thanks to Michael Mair-Keimberger (iamnr3)
and austinenglish
16 Feb 2014; Alon Bar-Lev <alonbl@gentoo.org> -nettle-2.7.1-r1.ebuild:
Revert multilib, bug#501436
*nettle-2.7.1-r1 (15 Feb 2014)
15 Feb 2014; Alon Bar-Lev <alonbl@gentoo.org> +nettle-2.7.1-r1.ebuild:
Add multilib support, bug#493974, thanks to Michael Mair-Keimberger (iamnr3)
and austinenglish
06 Aug 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for s390, wrt bug #477612
04 Aug 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for ia64, wrt bug #477612
03 Aug 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for sparc, wrt bug #477612
30 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for alpha, wrt bug #477612
27 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for x86, wrt bug #477612
23 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for arm, wrt bug #477612
22 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for ppc64, wrt bug #477612
22 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for ppc, wrt bug #477612
22 Jul 2013; Jeroen Roovers <jer@gentoo.org> nettle-2.7.1.ebuild:
Stable for HPPA (bug #477612).
21 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
Stable for amd64, wrt bug #477612
*nettle-2.7.1 (05 Jun 2013)
05 Jun 2013; Tim Harder <radhermit@gentoo.org> +nettle-2.7.1.ebuild:
Version bump.
27 May 2013; Fabian Groffen <grobian@gentoo.org> nettle-2.7.ebuild:
Use prefixed libdir, bug #471298
11 May 2013; Alon Bar-Lev <alonbl@gentoo.org> nettle-2.7.ebuild:
Fix libdir location, per bug#468810, thanks to Anthony Basile
*nettle-2.7 (27 Apr 2013)
27 Apr 2013; Tim Harder <radhermit@gentoo.org> +nettle-2.7.ebuild,
+files/nettle-2.7-shared.patch:
Version bump (bug #467468), add neon use flag.
15 Mar 2013; Jeroen Roovers <jer@gentoo.org> nettle-2.6.ebuild:
Stable for HPPA (bug #461104).
15 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for sh, wrt bug #461104
14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for s390, wrt bug #461104
14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for sparc, wrt bug #461104
14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for ia64, wrt bug #461104
14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for arm, wrt bug #461104
14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for alpha, wrt bug #461104
13 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for ppc64, wrt bug #461104
12 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for ppc, wrt bug #461104
10 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for x86, wrt bug #461104
10 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
Stable for amd64, wrt bug #461104
20 Feb 2013; Zac Medico <zmedico@gentoo.org> nettle-2.6.ebuild:
Add ~arm-linux keyword.
18 Jan 2013; Tim Harder <radhermit@gentoo.org> nettle-2.6.ebuild,
files/nettle-2.6-shared.patch:
Remove explicit src_test. The default just throws a couple warnings if static
libs aren't built but still passes successfully.
18 Jan 2013; Tim Harder <radhermit@gentoo.org> nettle-2.6.ebuild:
Explicitly specify examples dir.
*nettle-2.6 (18 Jan 2013)
18 Jan 2013; Tim Harder <radhermit@gentoo.org> +nettle-2.6.ebuild,
+files/nettle-2.6-shared.patch:
Version bump. Update to EAPI 5 and add subslot, add doc and test use flags,
and run tests.
14 Dec 2012; Alon Bar-Lev <alonbl@gentoo.org> +files/nettle-2.5-build-ar.patch,
nettle-2.5-r1.ebuild:
Fix ar detection per bug#438160 by Sean McGovern
*nettle-2.5-r1 (14 Dec 2012)
14 Dec 2012; Alon Bar-Lev <alonbl@gentoo.org> +files/nettle-2.5-static-libs.patch,
+nettle-2.5-r1.ebuild:
bug#405525 add support for USE static-libs
20 Oct 2012; Raúl Porcel <armin76@gentoo.org> nettle-2.5.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #433235
17 Oct 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> nettle-2.5.ebuild:
x86 stable wrt bug #433235
12 Oct 2012; Agostino Sarubbo <ago@gentoo.org> nettle-2.5.ebuild:
Stable for amd64, wrt bug #433235
11 Oct 2012; Jeroen Roovers <jer@gentoo.org> nettle-2.5.ebuild:
Stable for HPPA (bug #433235).
11 Oct 2012; Markus Meier <maekke@gentoo.org> nettle-2.5.ebuild:
arm stable, bug #433235
11 Oct 2012; Anthony G. Basile <blueness@gentoo.org> nettle-2.5.ebuild:
stable ppc64, bug #433235
10 Oct 2012; Brent Baude <ranger@gentoo.org> nettle-2.5.ebuild:
Marking nettle-2.5 ppc for bug 433235
*nettle-1.15 (24 Jul 2012)
24 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> +nettle-1.15.ebuild:
Restore ebuild that shouldn't have been deleted.
24 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> -nettle-1.15.ebuild,
nettle-2.4.ebuild, nettle-2.5.ebuild:
Disable openssl dependency (which was also wrong, it wasn't RDEPEND), and
avoid using it altogether. Thanks to Maxim Kammerer in bug #427526.
*nettle-2.5 (12 Jul 2012)
12 Jul 2012; Tim Harder <radhermit@gentoo.org> +nettle-2.5.ebuild,
+files/nettle-2.5-missing-libm-link.patch:
Version bump.
06 Jul 2012; Rick Farina <zerochaos@gentoo.org>
+files/nettle-2.4-missing-libm-link.patch, nettle-2.4.ebuild:
fix build failure on uclibc systems per bug 415193
26 Apr 2012; Alexis Ballier <aballier@gentoo.org> nettle-2.4.ebuild:
keyword ~amd64-fbsd
20 Mar 2012; Tim Harder <radhermit@gentoo.org> -nettle-2.0.ebuild,
-files/nettle-2.0-asneeded.patch, -nettle-2.1.ebuild, -nettle-2.2.ebuild:
Remove old.
19 Mar 2012; Raúl Porcel <armin76@gentoo.org> nettle-2.4.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #400019
06 Mar 2012; Jeff Horelick <jdhore@gentoo.org> nettle-2.4.ebuild:
marked x86 per bug 400019
06 Mar 2012; Brent Baude <ranger@gentoo.org> nettle-2.4.ebuild:
Marking nettle-2.4 ppc64 for bug 400019
01 Mar 2012; Brent Baude <ranger@gentoo.org> nettle-2.4.ebuild:
Marking nettle-2.4 ppc for bug 400019
29 Feb 2012; Markus Meier <maekke@gentoo.org> nettle-2.4.ebuild:
arm stable, bug #400019
27 Feb 2012; Jeroen Roovers <jer@gentoo.org> nettle-2.4.ebuild:
Stable for HPPA (bug #400019).
24 Feb 2012; Agostino Sarubbo <ago@gentoo.org> nettle-2.4.ebuild:
Stable for amd64, wrt bug #400019
18 Feb 2012; Fabian Groffen <grobian@gentoo.org> nettle-2.4.ebuild:
Fixed for and marked ~x86-solaris
16 Feb 2012; Fabian Groffen <grobian@gentoo.org> nettle-2.4.ebuild:
Marked ~sparc-solaris
10 Feb 2012; Tim Harder <radhermit@gentoo.org> nettle-2.4.ebuild,
files/nettle-2.4-darwin-shlink.patch:
Enable gmp use flag by default (needed by gnutls) and fix sed line in patch
file (bug #400941).
01 Jan 2012; Sergei Trofimovich <slyfox@gentoo.org>
+files/nettle-2.0-binutils-2.22.patch, nettle-1.15.ebuild, nettle-2.0.ebuild,
nettle-2.1.ebuild:
Fix build failure against binutils-2.22 by jdhore (bug #396659). Dropped
blockers on nonexistent dev-libs/lsh.
03 Dec 2011; Fabian Groffen <grobian@gentoo.org>
+files/nettle-2.4-darwin-shlink.patch, nettle-2.4.ebuild:
Add patch to fix compilation on Darwin, marked ~x64-macos
*nettle-2.4 (04 Sep 2011)
04 Sep 2011; Tim Harder <radhermit@gentoo.org> -nettle-2.3.ebuild,
+nettle-2.4.ebuild:
Version bump and remove old.
*nettle-2.3 (03 Sep 2011)
03 Sep 2011; Tim Harder <radhermit@gentoo.org> +nettle-2.3.ebuild:
Version bump.
*nettle-2.2 (08 Aug 2011)
08 Aug 2011; Markos Chandras <hwoarang@gentoo.org> +nettle-2.2.ebuild:
Version bump. Ebuild by Arfrever
24 Jul 2011; Raúl Porcel <armin76@gentoo.org> nettle-2.1.ebuild:
sh stable wrt #337160
23 Jul 2011; Raúl Porcel <armin76@gentoo.org> nettle-2.1.ebuild:
ia64/s390 stable wrt #337160
13 Jun 2011; Matt Turner <mattst88@gentoo.org> nettle-2.1.ebuild:
Added ~mips, bug 337367
02 May 2011; Samuli Suominen <ssuominen@gentoo.org> nettle-2.1.ebuild:
ppc64 stable wrt #337160
04 Apr 2011; Michael Weber <xmw@gentoo.org> nettle-2.1.ebuild:
arm/sparc stable (bug 337160)
30 Mar 2011; Jeroen Roovers <jer@gentoo.org> nettle-2.1.ebuild:
Stable for HPPA (bug #337160).
27 Mar 2011; Brent Baude <ranger@gentoo.org> nettle-2.1.ebuild:
stable ppc, bug 337160
26 Mar 2011; Tobias Klausmann <klausman@gentoo.org> nettle-2.1.ebuild:
Stable on alpha, bug #337160
25 Mar 2011; Markos Chandras <hwoarang@gentoo.org> nettle-2.1.ebuild:
Stable on amd64 wrt bug #337160
17 Dec 2010; Dane Smith <c1pher@gentoo.org> nettle-1.15.ebuild:
Fixed implicit RDEPEND="${DEPEND}" warning.
05 Nov 2010; Samuli Suominen <ssuominen@gentoo.org> nettle-2.1.ebuild:
Keyword ~ppc64 wrt #337367
25 Sep 2010; Markus Meier <maekke@gentoo.org> nettle-2.1.ebuild:
add ~arm, bug #337367
*nettle-2.1 (10 Aug 2010)
10 Aug 2010; Markos Chandras <hwoarang@gentoo.org> +nettle-2.1.ebuild:
Version bump. Bug #332129. Thanks to Dane Smith <smithdanea@gmail.com> for
the patch and the testing
29 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> nettle-2.0.ebuild,
+files/nettle-2.0-asneeded.patch:
Fix building with -Wl,--as-needed wrt #285747 by Kacper Kowalik.
14 Jan 2010; Christian Faulhammer <fauli@gentoo.org> nettle-2.0.ebuild:
Transfer Prefix keywords
03 Nov 2009; Raúl Porcel <armin76@gentoo.org> nettle-2.0.ebuild:
s390 stable wrt #279372
05 Aug 2009; Markus Meier <maekke@gentoo.org> nettle-2.0.ebuild:
x86 stable, bug #279372
02 Aug 2009; nixnut <nixnut@gentoo.org> nettle-2.0.ebuild:
ppc stable #279372
31 Jul 2009; Tiago Cunha <tcunha@gentoo.org> nettle-2.0.ebuild:
stable sparc, bug 279372
31 Jul 2009; <chainsaw@gentoo.org> nettle-2.0.ebuild:
Marked stable on AMD64 as requested by Arfrever Frehtes Taifersar Arahesis
<arfrever@gentoo.org> in bug #279372. Compile-tested on a Core2 Duo with
USE="ssl -gmp".
*nettle-2.0 (27 Jun 2009)
27 Jun 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+nettle-2.0.ebuild:
Version bump.
14 Nov 2007; Alon Bar-Lev <alonbl@gentoo.org>
-files/nettle-1.13-PIC.patch, -files/nettle-1.13-no-exec-stack.patch,
-files/nettle-1.13-preprocess-asm.patch, -nettle-1.10.ebuild,
-nettle-1.12.ebuild, -nettle-1.13.ebuild, -nettle-1.13-r1.ebuild,
-nettle-1.14.ebuild:
Cleanup
14 Nov 2007; Markus Ullmann <jokey@gentoo.org> nettle-1.15.ebuild:
Stable on sparc wrt bug #198689
11 Nov 2007; Dawid Węgliński <cla@gentoo.org> nettle-1.15.ebuild:
Stable on x86 (bug #198689)
10 Nov 2007; Samuli Suominen <drac@gentoo.org> nettle-1.15.ebuild:
amd64 stable
10 Nov 2007; nixnut <nixnut@gentoo.org> nettle-1.15.ebuild:
Stable on ppc wrt bug 198689
*nettle-1.15 (06 Aug 2007)
06 Aug 2007; Alon Bar-Lev <alonbl@gentoo.org> +nettle-1.15.ebuild:
Version bump, bug#187862
22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
Transition to Manifest2.
27 Dec 2006; Timothy Redaelli <drizzt@gentoo.org> nettle-1.14.ebuild:
Add ~x86-fbsd keyword.
31 Oct 2006; Alon Bar-Lev <alonbl@gentoo.org> nettle-1.14.ebuild:
Autotools fixups
*nettle-1.14 (31 Oct 2006)
31 Oct 2006; Alon Bar-Lev <alonbl@gentoo.org>
+files/nettle-1.14-make-as-needed.patch, +nettle-1.14.ebuild:
Version bump, fix LDFLAGS="-Wl,--as-needed", closes bug#153138
14 Oct 2005; Mike Frysinger <vapier@gentoo.org> nettle-1.13-r1.ebuild:
Add support for gmp/ssl USE flags.
*nettle-1.13-r1 (13 Oct 2005)
13 Oct 2005; Mike Frysinger <vapier@gentoo.org>
+files/nettle-1.13-PIC.patch, +files/nettle-1.13-no-exec-stack.patch,
+files/nettle-1.13-preprocess-asm.patch, +nettle-1.13-r1.ebuild:
Fixes from PaX team to address executable stacks and PIC bugs.
*nettle-1.13 (11 Oct 2005)
11 Oct 2005; Mike Frysinger <vapier@gentoo.org> +nettle-1.13.ebuild:
Version bump.
29 Sep 2005; Marcelo Goes <vanquirius@gentoo.org> nettle-1.10.ebuild,
nettle-1.12.ebuild:
Do not dodoc INSTALL.
*nettle-1.12 (30 Jul 2005)
30 Jul 2005; Daniel Black <dragonheart@gentoo.org> metadata.xml,
+nettle-1.12.ebuild:
version bump thanks to meatoo
22 Apr 2005; Simon Stelling <blubb@gentoo.org> nettle-1.10.ebuild:
stable on amd64
01 Oct 2004; Danny van Dyk <kugelfang@gentoo.org> nettle-1.10.ebuild:
-fPIC _is_ necessary, but not in static libraries. --enable-shared lets it
build an additional shared library.
30 Aug 2004; Danny van Dyk <kugelfang@gentoo.org> nettle-1.10.ebuild:
Removed append-flags -fPIC on amd64. Not necessary anymore.
20 Jul 2004; Rainer Groesslinger <scandium@gentoo.org> nettle-1.10.ebuild:
stable on x86, ppc, sparc
*nettle-1.10 (11 Jul 2004)
11 Jul 2004; Mike Frysinger <vapier@gentoo.org> :
Initial import. Ebuild submitted by Rainer Groesslinger #56156.

View File

@ -1,7 +1,3 @@
AUX nettle-3.2-CVE-2016-6489.patch 5332 SHA256 0bc6f90da2e682ebdfe1444ee83a591c4a47ba9ef70cfa955530a626e4f5888d SHA512 0393ec586b7eb0a16dd92164c5b7a103774db1ab7c5c375ac09583442b1a4f09df0ae3cf4e816d1a3b7ed1bea25289fa298f8b758940bf4b1caa410f7de73b1f WHIRLPOOL d1d868ee21be4e205030fe1dd7266e2d3889c18dfa795d0d6ee8b95934cac85a13706531413f9330ffc492879fb3559b81658cffb632875b190b6d64c2ffcfe3
DIST nettle-3.2.tar.gz 1879604 SHA256 ea4283def236413edab5a4cf9cf32adf540c8df1b9b67641cfc2302fca849d97 SHA512 9f2c802e8b683d1c2fd8d16ab33b2a1efda33a1bf33196be39031a2d0677f2e78d67221a718997780e157aa72973da7d9d549429e706fcfcdff97ee3bbef615a WHIRLPOOL 0353f04760137eef292848b4d8060c40cf2959596aff6f39a1d1bd123e42bc0ecb6f01679f16797204eedb01123c09ae7745121241f6a32cc205bf1c8c6efc12
EBUILD nettle-3.2-r1.ebuild 1844 SHA256 3033447e37868b7e4213e0ccdc42a327de038f1fa7acd8703ce0cf3614e8fa62 SHA512 8cd98981a82333575332cf23d8e9a53025ed012ec8dd06737829d9828b63cfb9d64ef43bca79fc2e8d55db13848e63f4c3e37cd34f1e72380c08bfc66ef1be65 WHIRLPOOL f2587b1da05a2b72bcf52290c316eba4d0e12ca8361cb06a5f69bd2128cf641ecc34e1532b00649e8fd5f517a3c04b47cac0c0fef60fefa83283ae41faf975b3
EBUILD nettle-3.2.ebuild 1785 SHA256 67e3d82b182f346a9f39dd402ba7cb73f3afc3080a0dd53d18faab2373e2c47c SHA512 f7766d82b1ab9519499f32525c39f5f5d572aecca54cbad295ae13002ea8ed85175c395a98af1a2fea8213cd437425c4870b2cdb919141b7db88a84ed4adbf7f WHIRLPOOL 63a05f91bd8b5c7a255941769a45e2c2b54a7f8f0dff8aa2d7cb127311cd949325e1a13978c234838c33b952ccfa8940c3fac5f7e14b315801f8d2b4366eb999
MISC ChangeLog 8203 SHA256 e280096367becf4c2ee1ef865a90ff15de3b8fe6993c34bfbe844f7bb1ceb26f SHA512 e432989aafeac733743300ec8807f27aa2caede37b6e3f3210bb7891afb333d3fdf7f289f8826d5777fe1286174d92ed8475cab5be47cba7094fa14409da8d2e WHIRLPOOL da9423c6359f9215b9e7cb6eb3528d5d72e7aff55b181bc9b5f5d0b7fcd7e0eda691483a6b6c41ecf6448e0762a341af7ccc607e66e45c942cea710f31a954df
MISC ChangeLog-2015 17411 SHA256 98a5c73c4fe4b134e2df6a9d6bdecabbb805a5d476970a09f9e92ccda1ef931d SHA512 5e3292521158eac6b187e872f871766ee879c15175906292b3046b782eac946274cd4ea9535d7034537e543f5f2378cbf2a962977387f6f58e2548ddbb19483d WHIRLPOOL b2ab41fd625ddab61566368e4eaf4e8a152a3bf50a609cc9c58144b6d7649873a6652356ef6d58f8fe6303bf917a72f7a7d1c5b826bbcadddb19b47b9f3c6af1
MISC metadata.xml 236 SHA256 dd25b46c95b0c63da84b7ff5778479e31449a385df066e9ee14bf0d7d176f42f SHA512 5f6cd6a85527534d5de7118de5af212ee3044c8c5530a7f7087a28074a2d4ab7be1728325bd985adc063dc795d3cf2b1c4e58a4c4c4ec02d739bd4bbc544ef08 WHIRLPOOL b15a2dfb001c41c8de2895842148b2531b74949e89e93ff8c366519c35792996e344918eaf9144fb081fc240796e47890be356d2339bea60b1e1d41830447d31
DIST nettle-3.4.1.tar.gz 1947053 BLAKE2B 354318c46c28aeaaca611abe70298024ec12ff70aed53c741e43c1b5373361e5cffb03df7b8e86ef103a3b7770b2b4fe39fbca00b128f2b7ec810b3a4d9fd0fd SHA512 26aefbbe9927e90e28f271e56d2ba876611831222d0e1e1a58bdb75bbd50934fcd84418a4fe47b845f557e60a9786a72a4de2676c930447b104f2256aca7a54f
DIST nettle-3.5.1.tar.gz 1989593 BLAKE2B 40e527a4cc541674acc39072f2ebbab4b6ed1b043687d88c776ce9c58374538b111d282e0eea5424059260b0876c5cf01f97470c850e082c167b05a57e6c591a SHA512 f738121b9091cbe79435fb5d46b45cf6f10912320c233829356908127bab1cac6946ca56e022a832380c44f2c10f21d2feef64cb0f4f41e3da4a681dc0131784
DIST nettle-3.6.tar.gz 2288173 BLAKE2B 45e08832e9c337f10d958956545c77f521b747b8abca56ce40c755adf352bdc2a79584b1e1c0e50f5ede0ac54794aabd6883601c53593b965aada744502789db SHA512 2471af875e51327af61af8bda53cd9c3adc27b6e32592a4b5b10b3ec60999ebf771ab9c54c747b0bade4b3b5a717e77fdbdb53699dd9e8a9ed4eee07f46aed51

View File

@ -1,177 +0,0 @@
From 6450224f3e3c78fdfa37eadbe6ada8301279f6c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Mon, 20 Jun 2016 20:04:56 +0200
Subject: Use mpz_powm_sec.
Subject: Check for invalid keys, with even p, in dsa_sign.
Subject: Reject invalid keys, with even moduli, in rsa_compute_root_tr.
Subject: Reject invalid RSA keys with even modulo.
diff --git a/bignum.h b/bignum.h
index 24158e0..0d30534 100644
--- a/bignum.h
+++ b/bignum.h
@@ -53,6 +53,8 @@
# define mpz_combit mpz_combit
# define mpz_import mpz_import
# define mpz_export mpz_export
+/* Side-channel silent powm not available in mini-gmp. */
+# define mpz_powm_sec mpz_powm
#else
# include <gmp.h>
#endif
diff --git a/configure.ac b/configure.ac
index e1ee64c..1e88477 100644
--- a/configure.ac
+++ b/configure.ac
@@ -236,9 +236,9 @@ fi
# Checks for libraries
if test "x$enable_public_key" = "xyes" ; then
if test "x$enable_mini_gmp" = "xno" ; then
- AC_CHECK_LIB(gmp, __gmpz_getlimbn,,
+ AC_CHECK_LIB(gmp, __gmpz_powm_sec,,
[AC_MSG_WARN(
- [GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
+ [GNU MP not found, or too old. GMP-5.0 or later is needed, see http://gmplib.org/.
Support for public key algorithms will be unavailable.])]
enable_public_key=no)
diff --git a/dsa-sign.c b/dsa-sign.c
index 62c7d4a..b713743 100644
--- a/dsa-sign.c
+++ b/dsa-sign.c
@@ -56,6 +56,11 @@ dsa_sign(const struct dsa_params *params,
mpz_t tmp;
int res;
+ /* Check that p is odd, so that invalid keys don't result in a crash
+ inside mpz_powm_sec. */
+ if (mpz_even_p (params->p))
+ return 0;
+
/* Select k, 0<k<q, randomly */
mpz_init_set(tmp, params->q);
mpz_sub_ui(tmp, tmp, 1);
@@ -65,7 +70,7 @@ dsa_sign(const struct dsa_params *params,
mpz_add_ui(k, k, 1);
/* Compute r = (g^k (mod p)) (mod q) */
- mpz_powm(tmp, params->g, k, params->p);
+ mpz_powm_sec(tmp, params->g, k, params->p);
mpz_fdiv_r(signature->r, tmp, params->q);
/* Compute hash */
diff --git a/rsa-blind.c b/rsa-blind.c
index 7662f50..16b03d7 100644
--- a/rsa-blind.c
+++ b/rsa-blind.c
@@ -61,7 +61,7 @@ _rsa_blind (const struct rsa_public_key *pub,
while (!mpz_invert (ri, r, pub->n));
/* c = c*(r^e) mod n */
- mpz_powm(r, r, pub->e, pub->n);
+ mpz_powm_sec(r, r, pub->e, pub->n);
mpz_mul(c, c, r);
mpz_fdiv_r(c, c, pub->n);
diff --git a/rsa-sign-tr.c b/rsa-sign-tr.c
index 3d80ed4..8542cae 100644
--- a/rsa-sign-tr.c
+++ b/rsa-sign-tr.c
@@ -60,7 +60,7 @@ rsa_blind (const struct rsa_public_key *pub,
while (!mpz_invert (ri, r, pub->n));
/* c = c*(r^e) mod n */
- mpz_powm(r, r, pub->e, pub->n);
+ mpz_powm_sec(r, r, pub->e, pub->n);
mpz_mul(c, m, r);
mpz_fdiv_r(c, c, pub->n);
@@ -88,6 +88,14 @@ rsa_compute_root_tr(const struct rsa_public_key *pub,
int res;
mpz_t t, mb, xb, ri;
+ /* mpz_powm_sec handles only odd moduli. If p, q or n is even, the
+ key is invalid and rejected by rsa_private_key_prepare. However,
+ some applications, notably gnutls, don't use this function, and
+ we don't want an invalid key to lead to a crash down inside
+ mpz_powm_sec. So do an additional check here. */
+ if (mpz_even_p (pub->n) || mpz_even_p (key->p) || mpz_even_p (key->q))
+ return 0;
+
mpz_init (mb);
mpz_init (xb);
mpz_init (ri);
@@ -97,7 +105,7 @@ rsa_compute_root_tr(const struct rsa_public_key *pub,
rsa_compute_root (key, xb, mb);
- mpz_powm(t, xb, pub->e, pub->n);
+ mpz_powm_sec(t, xb, pub->e, pub->n);
res = (mpz_cmp(mb, t) == 0);
if (res)
diff --git a/rsa-sign.c b/rsa-sign.c
index eba7388..4832352 100644
--- a/rsa-sign.c
+++ b/rsa-sign.c
@@ -96,11 +96,11 @@ rsa_compute_root(const struct rsa_private_key *key,
/* Compute xq = m^d % q = (m%q)^b % q */
mpz_fdiv_r(xq, m, key->q);
- mpz_powm(xq, xq, key->b, key->q);
+ mpz_powm_sec(xq, xq, key->b, key->q);
/* Compute xp = m^d % p = (m%p)^a % p */
mpz_fdiv_r(xp, m, key->p);
- mpz_powm(xp, xp, key->a, key->p);
+ mpz_powm_sec(xp, xp, key->a, key->p);
/* Set xp' = (xp - xq) c % p. */
mpz_sub(xp, xp, xq);
diff --git a/rsa.c b/rsa.c
index 19d93de..f594140 100644
--- a/rsa.c
+++ b/rsa.c
@@ -58,13 +58,18 @@ rsa_public_key_clear(struct rsa_public_key *key)
}
/* Computes the size, in octets, of a the modulo. Returns 0 if the
- * modulo is too small to be useful. */
-
+ * modulo is too small to be useful, or otherwise appears invalid. */
size_t
_rsa_check_size(mpz_t n)
{
/* Round upwards */
- size_t size = (mpz_sizeinbase(n, 2) + 7) / 8;
+ size_t size;
+
+ /* Even moduli are invalid, and not supported by mpz_powm_sec. */
+ if (mpz_even_p (n))
+ return 0;
+
+ size = (mpz_sizeinbase(n, 2) + 7) / 8;
if (size < RSA_MINIMUM_N_OCTETS)
return 0;
diff --git a/testsuite/rsa-test.c b/testsuite/rsa-test.c
index e9b1c03..a429664 100644
--- a/testsuite/rsa-test.c
+++ b/testsuite/rsa-test.c
@@ -57,6 +57,13 @@ test_main(void)
test_rsa_sha512(&pub, &key, expected);
+ /* Test detection of invalid keys with even modulo */
+ mpz_clrbit (pub.n, 0);
+ ASSERT (!rsa_public_key_prepare (&pub));
+
+ mpz_clrbit (key.p, 0);
+ ASSERT (!rsa_private_key_prepare (&key));
+
/* 777-bit key, generated by
*
* lsh-keygen -a rsa -l 777 -f advanced-hex
--
2.7.3

View File

@ -0,0 +1,53 @@
From f5a3a224bf00bef5669366d2ae23c2b2b13b8016 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 26 Dec 2018 11:04:31 +0100
Subject: [PATCH] Fix accidental use of C99 for loop.
* rsa-sign-tr.c (sec_equal): Fix accidental use of C99 for loop.
Reported by Andreas Gustafsson.
* testsuite/rsa-sec-decrypt-test.c (test_main): Likewise.
---
ChangeLog | 6 ++++++
rsa-sign-tr.c | 3 ++-
testsuite/rsa-sec-decrypt-test.c | 3 ++-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/rsa-sign-tr.c b/rsa-sign-tr.c
index 59c9bd07..f824c4ca 100644
--- a/rsa-sign-tr.c
+++ b/rsa-sign-tr.c
@@ -239,8 +239,9 @@ static int
sec_equal(const mp_limb_t *a, const mp_limb_t *b, size_t limbs)
{
volatile mp_limb_t z = 0;
+ size_t i;
- for (size_t i = 0; i < limbs; i++)
+ for (i = 0; i < limbs; i++)
{
z |= (a[i] ^ b[i]);
}
diff --git a/testsuite/rsa-sec-decrypt-test.c b/testsuite/rsa-sec-decrypt-test.c
index 64f0b13c..fb0ed3a1 100644
--- a/testsuite/rsa-sec-decrypt-test.c
+++ b/testsuite/rsa-sec-decrypt-test.c
@@ -68,6 +68,7 @@ test_main(void)
unsigned n_size = 1024;
mpz_t gibberish;
mpz_t garbage;
+ size_t size;
rsa_private_key_init(&key);
rsa_public_key_init(&pub);
@@ -78,7 +79,7 @@ test_main(void)
memset(verifybad, 'A', PAYLOAD_SIZE);
- for (size_t size = 1; size < 51; size++)
+ for (size = 1; size < 51; size++)
{
ASSERT (rsa_generate_keypair(&pub, &key, &random_ctx,
(nettle_random_func *) knuth_lfib_random,
--
2.18.1

View File

@ -1,8 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>crypto@gentoo.org</email>
<name>Crypto</name>
</maintainer>
<maintainer type="project">
<name>Gentoo Base System</name>
<email>base-system@gentoo.org</email>
</maintainer>
<upstream>
<remote-id type="cpe">cpe:/a:nettle_project:nettle</remote-id>
</upstream>
<use>
<flag name="asm">Support assembly hand optimized crypto functions (i.e. faster run time)</flag>
</use>
</pkgmetadata>

View File

@ -1,67 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit autotools eutils multilib-build multilib-minimal multilib toolchain-funcs
DESCRIPTION="Low-level cryptographic library"
HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
SLOT="0/6" # subslot = libnettle soname version
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris"
IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes"
DEPEND="gmp? ( >=dev-libs/gmp-5.0:0[${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}
abi_x86_32? (
!<=app-emulation/emul-linux-x86-baselibs-20131008-r17
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
)"
PATCHES=(
"${FILESDIR}/${P}-CVE-2016-6489.patch"
)
MULTILIB_WRAPPED_HEADERS=(
/usr/include/nettle/nettle-stdint.h
/usr/include/nettle/version.h
)
src_prepare() {
default
sed -e '/CFLAGS=/s: -ggdb3::' \
-e 's/solaris\*)/sunldsolaris*)/' \
-i configure.ac || die
# conditionally build tests and examples required by tests
use test || sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in || die
eautoreconf
}
multilib_src_configure() {
# --disable-openssl bug #427526
ECONF_SOURCE="${S}" econf \
--libdir="${EPREFIX}"/usr/$(get_libdir) \
--disable-openssl \
--disable-fat \
$(use_enable gmp public-key) \
$(use_enable static-libs static) \
$(tc-is-static-only && echo --disable-shared) \
$(use_enable doc documentation) \
$(use_enable neon arm-neon) \
$(use_enable cpu_flags_x86_aes x86-aesni)
}
multilib_src_install_all() {
einstalldocs
if use doc ; then
dohtml nettle.html
dodoc nettle.pdf
fi
}

View File

@ -1,32 +1,44 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
EAPI=7
inherit autotools eutils multilib-build multilib-minimal multilib toolchain-funcs
inherit autotools multilib-build multilib-minimal multilib toolchain-funcs
DESCRIPTION="Low-level cryptographic library"
HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
SLOT="0/6" # subslot = libnettle soname version
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris"
SLOT="0/6.2" # subslot = libnettle soname version, .2 as broke ABI bug#601512 then fixed
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes"
RESTRICT="!test? ( test )"
DEPEND="gmp? ( dev-libs/gmp:0[${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}
abi_x86_32? (
!<=app-emulation/emul-linux-x86-baselibs-20131008-r17
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
)"
DEPEND="gmp? ( >=dev-libs/gmp-6.0:0=[static-libs?,${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}"
MULTILIB_WRAPPED_HEADERS=(
/usr/include/nettle/nettle-stdint.h
/usr/include/nettle/version.h
)
DOCS=()
HTML_DOCS=()
PATCHES=(
"${FILESDIR}/${P}-build.patch"
)
pkg_setup() {
use doc && DOCS+=(
nettle.pdf
)
use doc && HTML_DOCS+=(
nettle.html
)
}
src_prepare() {
default
@ -53,11 +65,3 @@ multilib_src_configure() {
$(use_enable neon arm-neon) \
$(use_enable cpu_flags_x86_aes x86-aesni)
}
multilib_src_install_all() {
einstalldocs
if use doc ; then
dohtml nettle.html
dodoc nettle.pdf
fi
}

View File

@ -0,0 +1,63 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools multilib-build multilib-minimal multilib toolchain-funcs
DESCRIPTION="Low-level cryptographic library"
HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
SLOT="0/7" # subslot = libnettle soname version
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="+asm doc +gmp static-libs test cpu_flags_x86_aes cpu_flags_arm_neon cpu_flags_x86_sha"
RESTRICT="!test? ( test )"
DEPEND="gmp? ( >=dev-libs/gmp-6.0:0=[static-libs?,${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}"
MULTILIB_WRAPPED_HEADERS=(
/usr/include/nettle/version.h
)
DOCS=()
HTML_DOCS=()
pkg_setup() {
use doc && DOCS+=(
nettle.pdf
)
use doc && HTML_DOCS+=(
nettle.html
)
}
src_prepare() {
default
# I do not see in config.sub reference to sunldsolaris.
# if someone complains readd
# -e 's/solaris\*)/sunldsolaris*)/' \
sed -e '/CFLAGS=/s: -ggdb3::' \
-i configure.ac || die
eautoreconf
}
multilib_src_configure() {
# --disable-openssl bug #427526
ECONF_SOURCE="${S}" econf \
$(tc-is-static-only && echo --disable-shared) \
$(use_enable cpu_flags_x86_aes x86-aesni) \
$(use_enable cpu_flags_x86_sha x86-sha-ni) \
$(use_enable asm assembler) \
$(use_enable doc documentation) \
$(use_enable gmp public-key) \
$(use_enable cpu_flags_arm_neon arm-neon) \
$(use_enable static-libs static) \
--disable-fat \
--disable-openssl \
--libdir="${EPREFIX}"/usr/$(get_libdir)
}

View File

@ -0,0 +1,64 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools multilib-build multilib-minimal multilib toolchain-funcs
DESCRIPTION="Low-level cryptographic library"
HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
SLOT="0/8-6" # subslot = libnettle - libhogweed soname version
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="+asm doc +gmp static-libs test cpu_flags_x86_aes cpu_flags_arm_neon cpu_flags_x86_sha"
RESTRICT="!test? ( test )"
DEPEND="gmp? ( >=dev-libs/gmp-6.1:0=[static-libs?,${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}"
MULTILIB_WRAPPED_HEADERS=(
/usr/include/nettle/version.h
)
DOCS=()
HTML_DOCS=()
pkg_setup() {
use doc && DOCS+=(
nettle.pdf
)
use doc && HTML_DOCS+=(
nettle.html
)
}
src_prepare() {
default
# I do not see in config.sub reference to sunldsolaris.
# if someone complains readd
# -e 's/solaris\*)/sunldsolaris*)/' \
sed -e '/CFLAGS=/s: -ggdb3::' \
-i configure.ac || die
eautoreconf
}
multilib_src_configure() {
# --disable-openssl bug #427526
ECONF_SOURCE="${S}" econf \
CC_FOR_BUILD="$(tc-getBUILD_CC)" \
$(tc-is-static-only && echo --disable-shared) \
$(use_enable cpu_flags_x86_aes x86-aesni) \
$(use_enable cpu_flags_x86_sha x86-sha-ni) \
$(use_enable asm assembler) \
$(use_enable doc documentation) \
$(use_enable gmp public-key) \
$(use_enable cpu_flags_arm_neon arm-neon) \
$(use_enable static-libs static) \
--disable-fat \
--disable-openssl \
--libdir="${EPREFIX}"/usr/$(get_libdir)
}

View File

@ -0,0 +1,65 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools multilib-build multilib-minimal multilib toolchain-funcs
DESCRIPTION="Low-level cryptographic library"
HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
SLOT="0/8-6" # subslot = libnettle - libhogweed soname version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="+asm doc +gmp static-libs test cpu_flags_x86_aes cpu_flags_arm_neon cpu_flags_x86_sha"
RESTRICT="!test? ( test )"
DEPEND="gmp? ( >=dev-libs/gmp-6.1:0=[static-libs?,${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}"
BDEPEND="doc? ( sys-apps/texinfo )"
MULTILIB_WRAPPED_HEADERS=(
/usr/include/nettle/version.h
)
DOCS=()
HTML_DOCS=()
pkg_setup() {
use doc && DOCS+=(
nettle.pdf
)
use doc && HTML_DOCS+=(
nettle.html
)
}
src_prepare() {
default
# I do not see in config.sub reference to sunldsolaris.
# if someone complains readd
# -e 's/solaris\*)/sunldsolaris*)/' \
sed -e '/CFLAGS=/s: -ggdb3::' \
-i configure.ac || die
eautoreconf
}
multilib_src_configure() {
# --disable-openssl bug #427526
ECONF_SOURCE="${S}" econf \
CC_FOR_BUILD="$(tc-getBUILD_CC)" \
$(tc-is-static-only && echo --disable-shared) \
$(use_enable cpu_flags_x86_aes x86-aesni) \
$(use_enable cpu_flags_x86_sha x86-sha-ni) \
$(use_enable asm assembler) \
$(use_enable doc documentation) \
$(use_enable gmp public-key) \
$(use_enable cpu_flags_arm_neon arm-neon) \
$(use_enable static-libs static) \
--disable-fat \
--disable-openssl \
--libdir="${EPREFIX}"/usr/$(get_libdir)
}