From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#28934] ROCA detect Resent-From: ng0 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Oct 2017 23:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28934 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 28934@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150862983924706 (code B ref -1); Sat, 21 Oct 2017 23:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2017 23:50:39 +0000 Received: from localhost ([127.0.0.1]:54759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e63XF-0006QI-Uy for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:50:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e63XD-0006Q6-Q3 for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:50:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e63X6-0006kk-8M for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:50:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e63X5-0006hu-Sv for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:50:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e63X3-0004aW-DK for guix-patches@gnu.org; Sat, 21 Oct 2017 19:50:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e63X0-0006Oy-16 for guix-patches@gnu.org; Sat, 21 Oct 2017 19:50:21 -0400 Received: from aibo.runbox.com ([91.220.196.211]:39556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e63Wz-00067l-18 for guix-patches@gnu.org; Sat, 21 Oct 2017 19:50:17 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1e63Wt-0005fk-R9 for guix-patches@gnu.org; Sun, 22 Oct 2017 01:50:11 +0200 Received: from 178-17-170-195.static.as43289.net ([178.17.170.195] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1e63Wq-0002qW-5m for guix-patches@gnu.org; Sun, 22 Oct 2017 01:50:09 +0200 Date: Sat, 21 Oct 2017 23:49:01 +0000 From: ng0 Message-ID: <20171021234901.7bysdc2dx3jrours@abyayala> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4q2pkdmuqq2hkdtu" Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --4q2pkdmuqq2hkdtu Content-Type: multipart/mixed; boundary="zrhpadrjuujo5lxx" Content-Disposition: inline --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Some python modules to add a tool to detect ROCA. --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://dist.ng0.infotropique.org/dist/keys/ https://www.infotropique.org https://ng0.infotropique.org --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-python-humanfriendly.patch" Content-Transfer-Encoding: quoted-printable =46rom 412e84ce5e2f03ab67c29d751667bfd7b53ef34a Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 22:46:06 +0000 Subject: [PATCH 1/6] gnu: Add python-humanfriendly. * gnu/packages/python.scm (python-humanfriendly): New variable. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0684090c3..b64bdeda6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1099,6 +1099,33 @@ etc.). The package is structured to make adding new= modules easy.") "python" (package-inputs pycrypto))))))) =20 +(define-public python-humanfriendly + (package + (name "python-humanfriendly") + (version "4.4.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "humanfriendly" version)) + (sha256 + (base32 + "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi")))) + (build-system python-build-system) + (arguments + `(; Tests depend on coloredlogs, which in turn depends on humanfriend= ly. + #:tests? #f)) + (propagated-inputs + `(("python-monotonic" ,python-monotonic))) + (home-page "https://humanfriendly.readthedocs.io") + (synopsis "Human friendly input and output in Python") + (description + "The functions and classes in the humanfriendly package can be used +to make text interfaces more user friendly.") + (license license:expat))) + +(define-public python2-humanfriendly + (package-with-python2 python-humanfriendly)) + (define-public python-eventlet (package (name "python-eventlet") --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0002-gnu-Add-python-capturer.patch" Content-Transfer-Encoding: quoted-printable =46rom 81e9157501ffa3e4f47498fe802702b3bf66004c Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 22:56:09 +0000 Subject: [PATCH 2/6] gnu: Add python-capturer. * gnu/packages/python.scm (python-capturer): New variable. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b64bdeda6..d6af5c0d6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1126,6 +1126,34 @@ to make text interfaces more user friendly.") (define-public python2-humanfriendly (package-with-python2 python-humanfriendly)) =20 +(define-public python-capturer + (package + (name "python-capturer") + (version "2.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "capturer" version)) + (sha256 + (base32 + "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) + (propagated-inputs + `(("python-humanfriendly" ,python-humanfriendly))) + (home-page "https://capturer.readthedocs.io") + (synopsis "Capture stdout and stderr streams of the current process") + (description + "The capturer package makes it easy to capture the stdout and stderr +streams of the current process and subprocesses. Output can be relayed +to the terminal in real time but is also available to the Python program +for additional processing.") + (license license:expat))) + +(define-public python2-capturer + (package-with-python2 python-capturer)) + (define-public python-eventlet (package (name "python-eventlet") --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0003-gnu-Add-python-verboselogs.patch" Content-Transfer-Encoding: quoted-printable =46rom 662d4fa2c40202cfeb2e1ce8918d23f3cc4469b2 Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 23:12:17 +0000 Subject: [PATCH 3/6] gnu: Add python-verboselogs. * gnu/packages/python.scm (python-verboselogs): New variable. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d6af5c0d6..388d47d6d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1154,6 +1154,32 @@ for additional processing.") (define-public python2-capturer (package-with-python2 python-capturer)) =20 +(define-public python-verboselogs + (package + (name "python-verboselogs") + (version "1.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "verboselogs" version)) + (sha256 + (base32 + "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3")))) + (build-system python-build-system) + (native-inputs + `(("python-mock" ,python-mock) + ("python-astroid" ,python-astroid) + ("python-pylint" ,python-pylint))) + (home-page "https://verboselogs.readthedocs.io") + (synopsis "Verbose logging level for Python's logging module") + (description + "The verboselogs package extends Python's logging module to add the +log levels NOTICE, SPAM, SUCCESS and VERBOSE.") + (license license:expat))) + +(define-public python2-verboselogs + (package-with-python2 python-verboselogs)) + (define-public python-eventlet (package (name "python-eventlet") --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0004-gnu-Add-python-coloredlogs.patch" Content-Transfer-Encoding: quoted-printable =46rom 36170f8801dbb33d91626447ff3e69bf1ac31dca Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 23:29:17 +0000 Subject: [PATCH 4/6] gnu: Add python-coloredlogs. * gnu/packages/python.scm (python-coloredlogs): New variable. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 388d47d6d..12b6f891f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1180,6 +1180,35 @@ log levels NOTICE, SPAM, SUCCESS and VERBOSE.") (define-public python2-verboselogs (package-with-python2 python-verboselogs)) =20 +(define-public python-coloredlogs + (package + (name "python-coloredlogs") + (version "7.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "coloredlogs" version)) + (sha256 + (base32 + "1blcann6dyg5dhps9pg12rn0q0rjrlajpmmil0gy0j4cbvnl2il9")))) + (build-system python-build-system) + (arguments + `(;Tests require some updated modules + #:tests? #f)) + (propagated-inputs + `(("python-capturer" ,python-capturer))) + (home-page "https://coloredlogs.readthedocs.io") + (synopsis "Colored stream handler for Python's logging module") + (description + "The coloredlogs package enables colored terminal output for Python's +logging module. The ColoredFormatter class inherits from +logging.Formatter and uses ANSI escape sequences to render your logging +messages in color. It uses only standard colors.") + (license license:expat))) + +(define-public python2-coloredlogs + (package-with-python2 python-coloredlogs)) + (define-public python-eventlet (package (name "python-eventlet") --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0005-gnu-Add-python-pgpdump.patch" Content-Transfer-Encoding: quoted-printable =46rom 8ff7e30582a6d84b6c9bf56cd985ef9c04af9eaa Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 23:41:26 +0000 Subject: [PATCH 5/6] gnu: Add python-pgpdump. * gnu/packages/gnupg.scm (python-pgpdump): New variable. --- gnu/packages/gnupg.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index ffad57ef5..9a6ff68f8 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -850,3 +850,34 @@ them to transform your existing public key into a secr= et key.") @uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and = sign files, to verify signatures, and to manage the private and public keys.") (license license:gpl3+))) + +(define-public python-pgpdump + (package + (name "python-pgpdump") + (version "1.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pgpdump" version)) + (sha256 + (base32 + "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw")))) + (build-system python-build-system) + (home-page "https://github.com/toofishes/python-pgpdump") + (synopsis "Python library for parsing PGP packets") + (description + "Python-pgpdump is based on the pgpdump +(http://www.mew.org/~kazu/proj/pgpdump/). Currently supported things +include: + +@enumerate +@item Signature packets +@item Public key packets +@item Secret key packets +@item Trust, user ID, and user attribute packets +@item ASCII-armor decoding and CRC check +@end enumerate\n") + (license license:bsd-3))) + +(define-public python2-pgpdump + (package-with-python2 python-pgpdump)) --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0006-gnu-Add-python-roca-detect.patch" Content-Transfer-Encoding: quoted-printable =46rom ed8ec89c1bd898aa927ddca9c453bc6e950e61a3 Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 23:45:51 +0000 Subject: [PATCH 6/6] gnu: Add python-roca-detect. * gnu/packages/crypto.scm (python-roca-detect): New variable. --- gnu/packages/crypto.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 549955d7b..bb0aa8063 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -632,3 +632,40 @@ data on your platform, so the seed itself will be as r= andom as possible. Networking and Cryptography library. These libraries have a stated goal of improving usability, security and speed.") (license license:asl2.0))) + +(define-public python-roca-detect + (package + (name "python-roca-detect") + (version "1.0.8") + (source + (origin + (method url-fetch) + (uri (pypi-uri "roca-detect" version)) + (sha256 + (base32 + "1di4akyw2lf5r8zfwvyhkilz8jv8g4b66rgaqwfabmjwma6gnw27")))) + (build-system python-build-system) + (native-inputs + ;; TODO: apk_parse_ph4, pyjks + `(("python2-dateutil" ,python2-dateutil) + ("python2-six" ,python2-six) + ("python2-cryptography" ,python2-cryptography) + ("python2-future" ,python2-future) + ("python2-coloredlogs" ,python2-coloredlogs) + ("python2-pgpdump" ,python2-pgpdump))) + (arguments + `(; Basic testing routine is quite simple and works with Py3 + ;; but the rest of the code that processes the different + ;; key formats and extracts the modulus for inspection is + ;; not yet fully py3 ready. + #:python ,python-2)) + (home-page "https://github.com/crocs-muni/roca") + (synopsis "ROCA detection tool") + (description + "This tool is related to the \"Return of the Coppersmith=E2=80=99s At= tack: Practical +Factorization of Widely Used RSA Moduli.\" paper. It enables you to test = public +RSA keys for a presence of the described vulnerability. Currently the tool +supports the following key formats: X509 Certificate (DER encoded, PEM enc= oded), +RSA PEM (encoded private key, public key), SSH public key, ASC encoded PGP= key, +APK android application, LDIFF file, and more.") + (license license:gpl3))) --=20 2.14.2 --zrhpadrjuujo5lxx-- --4q2pkdmuqq2hkdtu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlnr3O0ACgkQ4i+bv+40 hYipOg/+N6HcCoq0PUbl6/nG79Hwp5VSSnNsHedka2CTI0JgIgb/FjE89zExqKEj YociWjKDpI0EY5GNRTXo9Ri3OwTW9RRUYL7xR0yJb2W/XPyHnfrZwnaP5OLUOLjo EfTrofY5K/bNuKd4sUKz5guNqLTZpftES8Th+ClgQqHj4h5DvplhwMseR4Oq/0RW wUjRd516ibCLe5Em1O/gcxbKe2DHhz41SZuK6B1UzetcE3M5j/aFslNprayd+cA0 dzd1afgeiEnFCAaJRKQ0WbD0LiLJvf8rAMMi8GuAfYjXswjQ4TbxljfjWCCLwYW2 +rO3ObEaF/uiEIEZ8eGj0QbfKiEXt1vrYgyyyHvwMpI/+o+xwLb7mTq4PO7tYH3g i581337UlGf6+5DaLpuFxy4YV0FNzxSugCSCiKMt3AjF/DQ1MCmX8E5mq5m3L61f b66KWjTeT0QKd330GNXY6gEsx3YEjjzHRXw8Ftnxvp2ySXZF+PfBlH/KIG6okbbl U+/CM5g1JU5QJknooG3un8Co3psBNZNZ3GlK0bj6GnvpITmGe+FhbRN+CEps8xRu kQ+Q3qlb3E5BsLNZq3zAOPv4bqLS6t+lHimdv5ufoO79uEmD4Bwt78k3y94tOb67 xmGj/EaQNgl9Siwzd9skq5tGCXJo1uVNy5nRsoa3wkYSFmsGvs8= =I8Pm -----END PGP SIGNATURE----- --4q2pkdmuqq2hkdtu-- From unknown Sun Jun 22 17:16:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: ng0 Subject: bug#28934: closed (Re: [bug#28934] ROCA detect) Message-ID: References: <877evijyhp.fsf@gnu.org> <20171021234901.7bysdc2dx3jrours@abyayala> X-Gnu-PR-Message: they-closed 28934 X-Gnu-PR-Package: guix-patches Reply-To: 28934@debbugs.gnu.org Date: Thu, 26 Oct 2017 05:00:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1508994002-5429-1" This is a multi-part message in MIME format... ------------=_1508994002-5429-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28934: ROCA detect which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 28934@debbugs.gnu.org. --=20 28934: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28934 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1508994002-5429-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28934-done) by debbugs.gnu.org; 26 Oct 2017 04:59:27 +0000 Received: from localhost ([127.0.0.1]:33845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7aGK-0001O9-7p for submit@debbugs.gnu.org; Thu, 26 Oct 2017 00:59:27 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:51305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7aGI-0001O0-7H for 28934-done@debbugs.gnu.org; Thu, 26 Oct 2017 00:59:23 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2EFA4E993; Thu, 26 Oct 2017 06:59:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q1krunZ_oHMY; Thu, 26 Oct 2017 06:59:20 +0200 (CEST) Received: from ribbon (node-1w7jr9qot7winqrne9k8b99d1.ipv6.telus.net [IPv6:2001:569:7803:2c00:728:f466:18ad:22a5]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 73AEB691; Thu, 26 Oct 2017 06:59:19 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: ng0 Subject: Re: [bug#28934] ROCA detect References: <20171021234901.7bysdc2dx3jrours@abyayala> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 Brumaire an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 25 Oct 2017 21:59:14 -0700 In-Reply-To: <20171021234901.7bysdc2dx3jrours@abyayala> (ng0@infotropique.org's message of "Sat, 21 Oct 2017 23:49:01 +0000") Message-ID: <877evijyhp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 28934-done Cc: 28934-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi ng0, ng0 skribis: > From 412e84ce5e2f03ab67c29d751667bfd7b53ef34a Mon Sep 17 00:00:00 2001 > From: ng0 > Date: Sat, 21 Oct 2017 22:46:06 +0000 > Subject: [PATCH 1/6] gnu: Add python-humanfriendly. > > * gnu/packages/python.scm (python-humanfriendly): New variable. Note: commit logs should also mention the =E2=80=9Cpython2-=E2=80=9D variab= les that are added. I amended them. Committed with these adjustments: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index edb434fb3..6e01d2e2d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1112,15 +1112,18 @@ etc.). The package is structured to make adding new modules easy.") "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi")))) (build-system python-build-system) (arguments - `(; Tests depend on coloredlogs, which in turn depends on humanfriendly. + `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly. #:tests? #f)) (propagated-inputs `(("python-monotonic" ,python-monotonic))) (home-page "https://humanfriendly.readthedocs.io") - (synopsis "Human friendly input and output in Python") + (synopsis "Human-friendly input and output in Python") (description - "The functions and classes in the humanfriendly package can be used -to make text interfaces more user friendly.") + "The functions and classes in @code{humanfriendly} can be used to make +text interfaces more user-friendly. It includes tools to parse and format +numbers, file sizes, and timespans, timers for long-running operations, menus +to allow the user to choose from a list of options, and terminal interaction +helpers.") (license license:expat))) (define-public python2-humanfriendly --=-=-= Content-Type: text/plain > From 81e9157501ffa3e4f47498fe802702b3bf66004c Mon Sep 17 00:00:00 2001 > From: ng0 > Date: Sat, 21 Oct 2017 22:56:09 +0000 > Subject: [PATCH 2/6] gnu: Add python-capturer. > > * gnu/packages/python.scm (python-capturer): New variable. [...] > From 662d4fa2c40202cfeb2e1ce8918d23f3cc4469b2 Mon Sep 17 00:00:00 2001 > From: ng0 > Date: Sat, 21 Oct 2017 23:12:17 +0000 > Subject: [PATCH 3/6] gnu: Add python-verboselogs. > > * gnu/packages/python.scm (python-verboselogs): New variable. [...] > From 36170f8801dbb33d91626447ff3e69bf1ac31dca Mon Sep 17 00:00:00 2001 > From: ng0 > Date: Sat, 21 Oct 2017 23:29:17 +0000 > Subject: [PATCH 4/6] gnu: Add python-coloredlogs. > > * gnu/packages/python.scm (python-coloredlogs): New variable. Applied with similar modifications to descriptions. > From 8ff7e30582a6d84b6c9bf56cd985ef9c04af9eaa Mon Sep 17 00:00:00 2001 > From: ng0 > Date: Sat, 21 Oct 2017 23:41:26 +0000 > Subject: [PATCH 5/6] gnu: Add python-pgpdump. > > * gnu/packages/gnupg.scm (python-pgpdump): New variable. I made these modifications: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index 9a6ff68f8..fabeee232 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -851,9 +851,9 @@ them to transform your existing public key into a secret key.") files, to verify signatures, and to manage the private and public keys.") (license license:gpl3+))) -(define-public python-pgpdump +(define-public python2-pgpdump (package - (name "python-pgpdump") + (name "python2-pgpdump") (version "1.5") (source (origin @@ -863,21 +863,21 @@ files, to verify signatures, and to manage the private and public keys.") (base32 "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw")))) (build-system python-build-system) + + ;; Currently fails to build with Python 3. + (arguments `(#:python ,python-2)) + (home-page "https://github.com/toofishes/python-pgpdump") (synopsis "Python library for parsing PGP packets") (description - "Python-pgpdump is based on the pgpdump -(http://www.mew.org/~kazu/proj/pgpdump/). Currently supported things -include: - -@enumerate -@item Signature packets -@item Public key packets -@item Secret key packets -@item Trust, user ID, and user attribute packets -@item ASCII-armor decoding and CRC check -@end enumerate\n") + "Python-pgpdump is an OpenPGP packet parser based on +@uref{http://www.mew.org/~kazu/proj/pgpdump/, pgpdump}. It notably supports: + +@itemize +@item signature packets; +@item public key packets; +@item secret key packets; +@item trust, user ID, and user attribute packets; +@item ASCII-armor decoding and CRC check. +@end itemize\n") (license license:bsd-3))) - -(define-public python2-pgpdump - (package-with-python2 python-pgpdump)) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This is because the Python 3.x variant fails to build: --8<---------------cut here---------------start------------->8--- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAIL: test_parse_partial_length (pgpdump.test.EncryptedPacketsTestCase) This file contains an encrypted message with a Partial Body Length header ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test.p= y", line 435, in test_parse_partial_length rawdata =3D self.load_data('partial_length.gpg') File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test.p= y", line 102, in load_data self.assertTrue(os.path.exists(full_path)) AssertionError: False is not true =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAIL: test_parse_partial_length (pgpdump.test.EncryptedPacketsTestCase) This file contains an encrypted message with a Partial Body Length header ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test.p= y", line 435, in test_parse_partial_length rawdata =3D self.load_data('partial_length.gpg') File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test.p= y", line 102, in load_data self.assertTrue(os.path.exists(full_path)) AssertionError: False is not true ---------------------------------------------------------------------- Ran 58 tests in 0.546s FAILED (failures=3D2) --8<---------------cut here---------------end--------------->8--- > From ed8ec89c1bd898aa927ddca9c453bc6e950e61a3 Mon Sep 17 00:00:00 2001 > From: ng0 > Date: Sat, 21 Oct 2017 23:45:51 +0000 > Subject: [PATCH 6/6] gnu: Add python-roca-detect. > > * gnu/packages/crypto.scm (python-roca-detect): New variable. Applied with similar changes as above. Thank you! Ludo=E2=80=99. --=-=-=-- ------------=_1508994002-5429-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Oct 2017 23:50:39 +0000 Received: from localhost ([127.0.0.1]:54759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e63XF-0006QI-Uy for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:50:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e63XD-0006Q6-Q3 for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:50:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e63X6-0006kk-8M for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:50:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e63X5-0006hu-Sv for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:50:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e63X3-0004aW-DK for guix-patches@gnu.org; Sat, 21 Oct 2017 19:50:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e63X0-0006Oy-16 for guix-patches@gnu.org; Sat, 21 Oct 2017 19:50:21 -0400 Received: from aibo.runbox.com ([91.220.196.211]:39556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e63Wz-00067l-18 for guix-patches@gnu.org; Sat, 21 Oct 2017 19:50:17 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1e63Wt-0005fk-R9 for guix-patches@gnu.org; Sun, 22 Oct 2017 01:50:11 +0200 Received: from 178-17-170-195.static.as43289.net ([178.17.170.195] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1e63Wq-0002qW-5m for guix-patches@gnu.org; Sun, 22 Oct 2017 01:50:09 +0200 Date: Sat, 21 Oct 2017 23:49:01 +0000 From: ng0 To: guix-patches@gnu.org Subject: ROCA detect Message-ID: <20171021234901.7bysdc2dx3jrours@abyayala> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4q2pkdmuqq2hkdtu" Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --4q2pkdmuqq2hkdtu Content-Type: multipart/mixed; boundary="zrhpadrjuujo5lxx" Content-Disposition: inline --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Some python modules to add a tool to detect ROCA. --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://dist.ng0.infotropique.org/dist/keys/ https://www.infotropique.org https://ng0.infotropique.org --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-python-humanfriendly.patch" Content-Transfer-Encoding: quoted-printable =46rom 412e84ce5e2f03ab67c29d751667bfd7b53ef34a Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 22:46:06 +0000 Subject: [PATCH 1/6] gnu: Add python-humanfriendly. * gnu/packages/python.scm (python-humanfriendly): New variable. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0684090c3..b64bdeda6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1099,6 +1099,33 @@ etc.). The package is structured to make adding new= modules easy.") "python" (package-inputs pycrypto))))))) =20 +(define-public python-humanfriendly + (package + (name "python-humanfriendly") + (version "4.4.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "humanfriendly" version)) + (sha256 + (base32 + "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi")))) + (build-system python-build-system) + (arguments + `(; Tests depend on coloredlogs, which in turn depends on humanfriend= ly. + #:tests? #f)) + (propagated-inputs + `(("python-monotonic" ,python-monotonic))) + (home-page "https://humanfriendly.readthedocs.io") + (synopsis "Human friendly input and output in Python") + (description + "The functions and classes in the humanfriendly package can be used +to make text interfaces more user friendly.") + (license license:expat))) + +(define-public python2-humanfriendly + (package-with-python2 python-humanfriendly)) + (define-public python-eventlet (package (name "python-eventlet") --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0002-gnu-Add-python-capturer.patch" Content-Transfer-Encoding: quoted-printable =46rom 81e9157501ffa3e4f47498fe802702b3bf66004c Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 22:56:09 +0000 Subject: [PATCH 2/6] gnu: Add python-capturer. * gnu/packages/python.scm (python-capturer): New variable. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b64bdeda6..d6af5c0d6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1126,6 +1126,34 @@ to make text interfaces more user friendly.") (define-public python2-humanfriendly (package-with-python2 python-humanfriendly)) =20 +(define-public python-capturer + (package + (name "python-capturer") + (version "2.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "capturer" version)) + (sha256 + (base32 + "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) + (propagated-inputs + `(("python-humanfriendly" ,python-humanfriendly))) + (home-page "https://capturer.readthedocs.io") + (synopsis "Capture stdout and stderr streams of the current process") + (description + "The capturer package makes it easy to capture the stdout and stderr +streams of the current process and subprocesses. Output can be relayed +to the terminal in real time but is also available to the Python program +for additional processing.") + (license license:expat))) + +(define-public python2-capturer + (package-with-python2 python-capturer)) + (define-public python-eventlet (package (name "python-eventlet") --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0003-gnu-Add-python-verboselogs.patch" Content-Transfer-Encoding: quoted-printable =46rom 662d4fa2c40202cfeb2e1ce8918d23f3cc4469b2 Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 23:12:17 +0000 Subject: [PATCH 3/6] gnu: Add python-verboselogs. * gnu/packages/python.scm (python-verboselogs): New variable. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d6af5c0d6..388d47d6d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1154,6 +1154,32 @@ for additional processing.") (define-public python2-capturer (package-with-python2 python-capturer)) =20 +(define-public python-verboselogs + (package + (name "python-verboselogs") + (version "1.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "verboselogs" version)) + (sha256 + (base32 + "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3")))) + (build-system python-build-system) + (native-inputs + `(("python-mock" ,python-mock) + ("python-astroid" ,python-astroid) + ("python-pylint" ,python-pylint))) + (home-page "https://verboselogs.readthedocs.io") + (synopsis "Verbose logging level for Python's logging module") + (description + "The verboselogs package extends Python's logging module to add the +log levels NOTICE, SPAM, SUCCESS and VERBOSE.") + (license license:expat))) + +(define-public python2-verboselogs + (package-with-python2 python-verboselogs)) + (define-public python-eventlet (package (name "python-eventlet") --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0004-gnu-Add-python-coloredlogs.patch" Content-Transfer-Encoding: quoted-printable =46rom 36170f8801dbb33d91626447ff3e69bf1ac31dca Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 23:29:17 +0000 Subject: [PATCH 4/6] gnu: Add python-coloredlogs. * gnu/packages/python.scm (python-coloredlogs): New variable. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 388d47d6d..12b6f891f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1180,6 +1180,35 @@ log levels NOTICE, SPAM, SUCCESS and VERBOSE.") (define-public python2-verboselogs (package-with-python2 python-verboselogs)) =20 +(define-public python-coloredlogs + (package + (name "python-coloredlogs") + (version "7.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "coloredlogs" version)) + (sha256 + (base32 + "1blcann6dyg5dhps9pg12rn0q0rjrlajpmmil0gy0j4cbvnl2il9")))) + (build-system python-build-system) + (arguments + `(;Tests require some updated modules + #:tests? #f)) + (propagated-inputs + `(("python-capturer" ,python-capturer))) + (home-page "https://coloredlogs.readthedocs.io") + (synopsis "Colored stream handler for Python's logging module") + (description + "The coloredlogs package enables colored terminal output for Python's +logging module. The ColoredFormatter class inherits from +logging.Formatter and uses ANSI escape sequences to render your logging +messages in color. It uses only standard colors.") + (license license:expat))) + +(define-public python2-coloredlogs + (package-with-python2 python-coloredlogs)) + (define-public python-eventlet (package (name "python-eventlet") --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0005-gnu-Add-python-pgpdump.patch" Content-Transfer-Encoding: quoted-printable =46rom 8ff7e30582a6d84b6c9bf56cd985ef9c04af9eaa Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 23:41:26 +0000 Subject: [PATCH 5/6] gnu: Add python-pgpdump. * gnu/packages/gnupg.scm (python-pgpdump): New variable. --- gnu/packages/gnupg.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index ffad57ef5..9a6ff68f8 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -850,3 +850,34 @@ them to transform your existing public key into a secr= et key.") @uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and = sign files, to verify signatures, and to manage the private and public keys.") (license license:gpl3+))) + +(define-public python-pgpdump + (package + (name "python-pgpdump") + (version "1.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pgpdump" version)) + (sha256 + (base32 + "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw")))) + (build-system python-build-system) + (home-page "https://github.com/toofishes/python-pgpdump") + (synopsis "Python library for parsing PGP packets") + (description + "Python-pgpdump is based on the pgpdump +(http://www.mew.org/~kazu/proj/pgpdump/). Currently supported things +include: + +@enumerate +@item Signature packets +@item Public key packets +@item Secret key packets +@item Trust, user ID, and user attribute packets +@item ASCII-armor decoding and CRC check +@end enumerate\n") + (license license:bsd-3))) + +(define-public python2-pgpdump + (package-with-python2 python-pgpdump)) --=20 2.14.2 --zrhpadrjuujo5lxx Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0006-gnu-Add-python-roca-detect.patch" Content-Transfer-Encoding: quoted-printable =46rom ed8ec89c1bd898aa927ddca9c453bc6e950e61a3 Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 21 Oct 2017 23:45:51 +0000 Subject: [PATCH 6/6] gnu: Add python-roca-detect. * gnu/packages/crypto.scm (python-roca-detect): New variable. --- gnu/packages/crypto.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 549955d7b..bb0aa8063 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -632,3 +632,40 @@ data on your platform, so the seed itself will be as r= andom as possible. Networking and Cryptography library. These libraries have a stated goal of improving usability, security and speed.") (license license:asl2.0))) + +(define-public python-roca-detect + (package + (name "python-roca-detect") + (version "1.0.8") + (source + (origin + (method url-fetch) + (uri (pypi-uri "roca-detect" version)) + (sha256 + (base32 + "1di4akyw2lf5r8zfwvyhkilz8jv8g4b66rgaqwfabmjwma6gnw27")))) + (build-system python-build-system) + (native-inputs + ;; TODO: apk_parse_ph4, pyjks + `(("python2-dateutil" ,python2-dateutil) + ("python2-six" ,python2-six) + ("python2-cryptography" ,python2-cryptography) + ("python2-future" ,python2-future) + ("python2-coloredlogs" ,python2-coloredlogs) + ("python2-pgpdump" ,python2-pgpdump))) + (arguments + `(; Basic testing routine is quite simple and works with Py3 + ;; but the rest of the code that processes the different + ;; key formats and extracts the modulus for inspection is + ;; not yet fully py3 ready. + #:python ,python-2)) + (home-page "https://github.com/crocs-muni/roca") + (synopsis "ROCA detection tool") + (description + "This tool is related to the \"Return of the Coppersmith=E2=80=99s At= tack: Practical +Factorization of Widely Used RSA Moduli.\" paper. It enables you to test = public +RSA keys for a presence of the described vulnerability. Currently the tool +supports the following key formats: X509 Certificate (DER encoded, PEM enc= oded), +RSA PEM (encoded private key, public key), SSH public key, ASC encoded PGP= key, +APK android application, LDIFF file, and more.") + (license license:gpl3))) --=20 2.14.2 --zrhpadrjuujo5lxx-- --4q2pkdmuqq2hkdtu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlnr3O0ACgkQ4i+bv+40 hYipOg/+N6HcCoq0PUbl6/nG79Hwp5VSSnNsHedka2CTI0JgIgb/FjE89zExqKEj YociWjKDpI0EY5GNRTXo9Ri3OwTW9RRUYL7xR0yJb2W/XPyHnfrZwnaP5OLUOLjo EfTrofY5K/bNuKd4sUKz5guNqLTZpftES8Th+ClgQqHj4h5DvplhwMseR4Oq/0RW wUjRd516ibCLe5Em1O/gcxbKe2DHhz41SZuK6B1UzetcE3M5j/aFslNprayd+cA0 dzd1afgeiEnFCAaJRKQ0WbD0LiLJvf8rAMMi8GuAfYjXswjQ4TbxljfjWCCLwYW2 +rO3ObEaF/uiEIEZ8eGj0QbfKiEXt1vrYgyyyHvwMpI/+o+xwLb7mTq4PO7tYH3g i581337UlGf6+5DaLpuFxy4YV0FNzxSugCSCiKMt3AjF/DQ1MCmX8E5mq5m3L61f b66KWjTeT0QKd330GNXY6gEsx3YEjjzHRXw8Ftnxvp2ySXZF+PfBlH/KIG6okbbl U+/CM5g1JU5QJknooG3un8Co3psBNZNZ3GlK0bj6GnvpITmGe+FhbRN+CEps8xRu kQ+Q3qlb3E5BsLNZq3zAOPv4bqLS6t+lHimdv5ufoO79uEmD4Bwt78k3y94tOb67 xmGj/EaQNgl9Siwzd9skq5tGCXJo1uVNy5nRsoa3wkYSFmsGvs8= =I8Pm -----END PGP SIGNATURE----- --4q2pkdmuqq2hkdtu-- ------------=_1508994002-5429-1-- From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#28934] ROCA detect Resent-From: ng0 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Oct 2017 05:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28934 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: ng0 , 28934-done@debbugs.gnu.org Received: via spool by 28934-done@debbugs.gnu.org id=D28934.15089950187526 (code D ref 28934); Thu, 26 Oct 2017 05:17:02 +0000 Received: (at 28934-done) by debbugs.gnu.org; 26 Oct 2017 05:16:58 +0000 Received: from localhost ([127.0.0.1]:33874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7aXF-0001xD-Ha for submit@debbugs.gnu.org; Thu, 26 Oct 2017 01:16:58 -0400 Received: from aibo.runbox.com ([91.220.196.211]:37264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7aXE-0001x4-37 for 28934-done@debbugs.gnu.org; Thu, 26 Oct 2017 01:16:52 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1e7aXC-0006QK-GX; Thu, 26 Oct 2017 07:16:50 +0200 Received: from chomsky.torservers.net ([77.247.181.162] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1e7aWw-0000sQ-Mg; Thu, 26 Oct 2017 07:16:35 +0200 Date: Thu, 26 Oct 2017 05:16:31 +0000 From: ng0 Message-ID: <20171026051631.mmywbseta2x6wfc2@abyayala> References: <20171021234901.7bysdc2dx3jrours@abyayala> <877evijyhp.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="axrhhkw72rnnnnx7" Content-Disposition: inline In-Reply-To: <877evijyhp.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --axrhhkw72rnnnnx7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s transcribed 7.2K bytes: > Hi ng0, >=20 > ng0 skribis: >=20 > > From 412e84ce5e2f03ab67c29d751667bfd7b53ef34a Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 22:46:06 +0000 > > Subject: [PATCH 1/6] gnu: Add python-humanfriendly. > > > > * gnu/packages/python.scm (python-humanfriendly): New variable. >=20 > Note: commit logs should also mention the =E2=80=9Cpython2-=E2=80=9D vari= ables that are > added. I amended them. Oh? Hardly anyone does this ever, that's why I never picked up on it. Thanks for the notice :) > Committed with these adjustments: >=20 > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index edb434fb3..6e01d2e2d 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -1112,15 +1112,18 @@ etc.). The package is structured to make adding = new modules easy.") > "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi")))) > (build-system python-build-system) > (arguments > - `(; Tests depend on coloredlogs, which in turn depends on humanfrie= ndly. > + `(;; XXX: Tests depend on coloredlogs, which in turn depends on hum= anfriendly. Imo we should bootstrap this eventually. > #:tests? #f)) > (propagated-inputs > `(("python-monotonic" ,python-monotonic))) > (home-page "https://humanfriendly.readthedocs.io") > - (synopsis "Human friendly input and output in Python") > + (synopsis "Human-friendly input and output in Python") > (description > - "The functions and classes in the humanfriendly package can be used > -to make text interfaces more user friendly.") > + "The functions and classes in @code{humanfriendly} can be used to m= ake > +text interfaces more user-friendly. It includes tools to parse and form= at > +numbers, file sizes, and timespans, timers for long-running operations, = menus > +to allow the user to choose from a list of options, and terminal interac= tion > +helpers.") > (license license:expat))) > =20 > (define-public python2-humanfriendly >=20 > > From 81e9157501ffa3e4f47498fe802702b3bf66004c Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 22:56:09 +0000 > > Subject: [PATCH 2/6] gnu: Add python-capturer. > > > > * gnu/packages/python.scm (python-capturer): New variable. >=20 > [...] >=20 > > From 662d4fa2c40202cfeb2e1ce8918d23f3cc4469b2 Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 23:12:17 +0000 > > Subject: [PATCH 3/6] gnu: Add python-verboselogs. > > > > * gnu/packages/python.scm (python-verboselogs): New variable. >=20 > [...] >=20 > > From 36170f8801dbb33d91626447ff3e69bf1ac31dca Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 23:29:17 +0000 > > Subject: [PATCH 4/6] gnu: Add python-coloredlogs. > > > > * gnu/packages/python.scm (python-coloredlogs): New variable. >=20 > Applied with similar modifications to descriptions. >=20 > > From 8ff7e30582a6d84b6c9bf56cd985ef9c04af9eaa Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 23:41:26 +0000 > > Subject: [PATCH 5/6] gnu: Add python-pgpdump. > > > > * gnu/packages/gnupg.scm (python-pgpdump): New variable. >=20 > I made these modifications: >=20 > diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm > index 9a6ff68f8..fabeee232 100644 > --- a/gnu/packages/gnupg.scm > +++ b/gnu/packages/gnupg.scm > @@ -851,9 +851,9 @@ them to transform your existing public key into a sec= ret key.") > files, to verify signatures, and to manage the private and public keys.") > (license license:gpl3+))) > =20 > -(define-public python-pgpdump > +(define-public python2-pgpdump > (package > - (name "python-pgpdump") > + (name "python2-pgpdump") > (version "1.5") > (source > (origin > @@ -863,21 +863,21 @@ files, to verify signatures, and to manage the priv= ate and public keys.") > (base32 > "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw")))) > (build-system python-build-system) > + > + ;; Currently fails to build with Python 3. > + (arguments `(#:python ,python-2)) > + > (home-page "https://github.com/toofishes/python-pgpdump") > (synopsis "Python library for parsing PGP packets") > (description > - "Python-pgpdump is based on the pgpdump > -(http://www.mew.org/~kazu/proj/pgpdump/). Currently supported things > -include: > - > -@enumerate > -@item Signature packets > -@item Public key packets > -@item Secret key packets > -@item Trust, user ID, and user attribute packets > -@item ASCII-armor decoding and CRC check > -@end enumerate\n") > + "Python-pgpdump is an OpenPGP packet parser based on > +@uref{http://www.mew.org/~kazu/proj/pgpdump/, pgpdump}. It notably supp= orts: > + > +@itemize > +@item signature packets; > +@item public key packets; > +@item secret key packets; > +@item trust, user ID, and user attribute packets; > +@item ASCII-armor decoding and CRC check. > +@end itemize\n") > (license license:bsd-3))) > - > -(define-public python2-pgpdump > - (package-with-python2 python-pgpdump)) >=20 > This is because the Python 3.x variant fails to build: >=20 > --8<---------------cut here---------------start------------->8--- > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > FAIL: test_parse_partial_length (pgpdump.test.EncryptedPacketsTestCase) > This file contains an encrypted message with a Partial Body Length header > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test= =2Epy", line 435, in test_parse_partial_length > rawdata =3D self.load_data('partial_length.gpg') > File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test= =2Epy", line 102, in load_data > self.assertTrue(os.path.exists(full_path)) > AssertionError: False is not true >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > FAIL: test_parse_partial_length (pgpdump.test.EncryptedPacketsTestCase) > This file contains an encrypted message with a Partial Body Length header > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test= =2Epy", line 435, in test_parse_partial_length > rawdata =3D self.load_data('partial_length.gpg') > File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test= =2Epy", line 102, in load_data > self.assertTrue(os.path.exists(full_path)) > AssertionError: False is not true >=20 > ---------------------------------------------------------------------- > Ran 58 tests in 0.546s >=20 > FAILED (failures=3D2) > --8<---------------cut here---------------end--------------->8--- Strange=E2=80=A6 I did build it. > > From ed8ec89c1bd898aa927ddca9c453bc6e950e61a3 Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 23:45:51 +0000 > > Subject: [PATCH 6/6] gnu: Add python-roca-detect. > > > > * gnu/packages/crypto.scm (python-roca-detect): New variable. >=20 > Applied with similar changes as above. >=20 > Thank you! >=20 > Ludo=E2=80=99. Thanks! --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://dist.ng0.infotropique.org/dist/keys/ https://www.infotropique.org https://ng0.infotropique.org --axrhhkw72rnnnnx7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlnxb64ACgkQ4i+bv+40 hYhbNg/9F9N3YB0LO/UkQt/xISnlqxi810O4Lsi0F+fhEbjfA5IV3MHRofGXhWbi s/TxqvRdSfK7ljiEgGTvnNOGAl7yeesSTdNEKbnL9tSp64TknGFIBlqiu8++jKQV LjmHRDLdQL5EAL63iv43pJ979k5KIq4KB/fTrnHyDHDYZr72zszXxFNlGW7DQ9cZ vaJM3MSaoAOUEqEly9qOdjA4p9ixJ4eBc7Ky3sNofKZ3oBBKlLA7tz3Ps8AKeZ28 f37Ewvi5TkbgTwHlWTD2J2AGcL9cl41qWC/arLSGofPppZkg58n8ZzvWElWk28/7 jPWN6PjFtW49KRnXFNWMDITSIlcY/SRS/3sriITR/eapJ6jF+mrOJqHnlhtclIbT jcxFTL999eu1b8B84XK4CJdhXgjqwq2Ws2z1u91nwOYLXCcWV7ff4cBQpZjfLYli K9M8wQRwDkxWMfCUh7eJztBmkQIdNR1ISjyjNhHsR2Bz5mDn/sMUGZgT2kHr8rRT X+yyND0gYR3eKZ111QdQ3VqkK/7VoyBKfVgDfdo8ekkPahVdt7qy8rGw8oiBBeN0 0Rbr+7PlUywRLz/ZosdDmUa/otYaoP2GYbTOqU0TClxLlf1XgT/q3w1uMUDcq1KP PUJ2b3tkyk2oA4PSlRI9uNWKYE/Pj49HRM1KwSu01KkUoVtMPfE= =AOA5 -----END PGP SIGNATURE----- --axrhhkw72rnnnnx7--