summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm95
1 files changed, 26 insertions, 69 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 3a201e4095f..d3add550fec 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -469,6 +469,32 @@ general production use. Include this module and use its backends at your own
469risk.") 469risk.")
470 (license license:expat))) 470 (license license:expat)))
471 471
472(define-public python-certauth
473 (package
474 (name "python-certauth")
475 (version "1.3.0")
476 (source
477 (origin
478 (method url-fetch)
479 (uri (pypi-uri "certauth" version))
480 (sha256
481 (base32
482 "1yxqfb5131wahjyw9pxz03bq476rcfx62s6k53xx4cqbzzgdaqkq"))))
483 (build-system python-build-system)
484 (propagated-inputs
485 `(("python-pyopenssl" ,python-pyopenssl)
486 ("python-tldextract" ,python-tldextract)))
487 (native-inputs
488 `(("python-pytest-cov" ,python-pytest-cov)))
489 (home-page "https://github.com/ikreymer/certauth")
490 (synopsis "Certificate authority creation tool")
491 (description "This package provides a small library, built on top of
492pyOpenSSL, which allows for creating a custom certificate authority (CA)
493certificate, and generating on-demand dynamic host certs using that CA
494certificate. It is most useful for use with a man-in-the-middle HTTPS proxy,
495for example, for recording or replaying web content.")
496 (license license:expat)))
497
472(define-public python-certifi 498(define-public python-certifi
473 (package 499 (package
474 (name "python-certifi") 500 (name "python-certifi")
@@ -816,75 +842,6 @@ of improving usability, security and speed.")
816(define-public python2-pynacl 842(define-public python2-pynacl
817 (package-with-python2 python-pynacl)) 843 (package-with-python2 python-pynacl))
818 844
819(define-public python2-pgpdump
820 (package
821 (name "python2-pgpdump")
822 (version "1.5")
823 (source
824 (origin
825 (method url-fetch)
826 (uri (pypi-uri "pgpdump" version))
827 (sha256
828 (base32
829 "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw"))))
830 (build-system python-build-system)
831
832 ;; Currently fails to build with Python 3.
833 (arguments `(#:python ,python-2))
834
835 (home-page "https://github.com/toofishes/python-pgpdump")
836 (synopsis "Python library for parsing PGP packets")
837 (description
838 "Python-pgpdump is an OpenPGP packet parser based on
839@uref{http://www.mew.org/~kazu/proj/pgpdump/, pgpdump}. It notably supports:
840
841@itemize
842@item signature packets;
843@item public key packets;
844@item secret key packets;
845@item trust, user ID, and user attribute packets;
846@item ASCII-armor decoding and CRC check.
847@end itemize\n")
848 (license license:bsd-3)))
849
850(define-public python2-roca-detect
851 (package
852 (name "python2-roca-detect")
853 (version "1.0.8")
854 (source
855 (origin
856 (method url-fetch)
857 (uri (pypi-uri "roca-detect" version))
858 (sha256
859 (base32
860 "1di4akyw2lf5r8zfwvyhkilz8jv8g4b66rgaqwfabmjwma6gnw27"))))
861 (build-system python-build-system)
862 (native-inputs
863 ;; TODO: apk_parse_ph4, pyjks
864 `(("python2-dateutil" ,python2-dateutil)
865 ("python2-six" ,python2-six)
866 ("python2-cryptography" ,python2-cryptography)
867 ("python2-future" ,python2-future)
868 ("python2-coloredlogs" ,python2-coloredlogs)
869 ("python2-pgpdump" ,python2-pgpdump)))
870 (arguments
871 `(;; Basic testing routine is quite simple and works with Py3
872 ;; but the rest of the code that processes the different
873 ;; key formats and extracts the modulus for inspection is
874 ;; not yet fully py3 ready.
875 #:python ,python-2))
876 (home-page "https://github.com/crocs-muni/roca")
877 (synopsis "ROCA detection tool")
878 (description
879 "This tool is related to the paper entitled @i{Return of the
880Coppersmith’s Attack: Practical Factorization of Widely Used RSA Moduli}. It
881enables you to test public RSA keys for a presence of the described
882vulnerability. Currently the tool supports the following key formats: X.509
883Certificate (DER encoded, PEM encoded), RSA PEM (encoded private key, public
884key), SSH public key, ASC-encoded OpenPGP key, APK Android application, LDIFF
885file, and more.")
886 (license license:gpl3)))
887
888(define-public python-blurhash 845(define-public python-blurhash
889 (package 846 (package
890 (name "python-blurhash") 847 (name "python-blurhash")