diff options
author | Lars-Dominik Braun <ldb@leibniz-psychology.org> | 2020-04-28 11:41:08 +0200 |
---|---|---|
committer | Guix Patches Tester <> | 2020-04-28 10:51:18 +0100 |
commit | e9c9f4058e6005fca6c20b28e333f1c838c1a915 (patch) | |
tree | 365e0feae5ce5f0acc93e3c2cf7472e61e5a6316 /gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch | |
parent | 8ac4be51defa0e6d578307645cf9e35e0b321848 (diff) | |
download | guix-patches-e9c9f4058e6005fca6c20b28e333f1c838c1a915.tar guix-patches-e9c9f4058e6005fca6c20b28e333f1c838c1a915.tar.gz |
gnu: Add python-asyncssh
* gnu/packages/python-xyz.scm (python-asyncssh): New variable
* gnu/local.mk (dist_patch_DATA): Add new patch
* gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch: New file
Diffstat (limited to 'gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch')
-rw-r--r-- | gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch b/gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch new file mode 100644 index 0000000000..bf41ec865c --- /dev/null +++ b/gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch @@ -0,0 +1,37 @@ +Reverted commit +https://github.com/ronf/asyncssh/commit/386432c9b698beb23ccb88b69f4023560b76750f + +--- b/asyncssh/crypto/chacha.py ++++ a/asyncssh/crypto/chacha.py +@@ -51,13 +51,18 @@ + def poly1305(key, data, nonce): + """Compute a Poly1305 tag for a block of data""" + ++ poly = Poly1305(poly1305_key(key, nonce)) ++ poly.update(data) ++ return poly.finalize() +- return Poly1305.generate_tag(poly1305_key(key, nonce), data) + + def poly1305_verify(key, data, nonce, tag): + """Verify a Poly1305 tag for a block of data""" + ++ poly = Poly1305(poly1305_key(key, nonce)) ++ + try: ++ poly.update(data) ++ poly.verify(tag) +- Poly1305.verify_tag(poly1305_key(key, nonce), data, tag) + return True + except InvalidSignature: + return False +--- b/setup.py ++++ a/setup.py +@@ -52,7 +52,7 @@ + long_description = long_description, + platforms = 'Any', + python_requires = '>= 3.6', ++ install_requires = ['cryptography >= 2.7'], +- install_requires = ['cryptography >= 2.8'], + extras_require = { + 'bcrypt': ['bcrypt >= 3.1.3'], + 'gssapi': ['gssapi >= 1.2.0'], |