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. --- 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 random 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’s Attack: 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 encoded), +RSA PEM (encoded private key, public key), SSH public key, ASC encoded PGP key, +APK android application, LDIFF file, and more.") + (license license:gpl3))) -- 2.14.2