GNU bug report logs - #29415
[PATCH] gnu: python-axolotl: Update to 0.1.39 and fix build.

Previous Next

Package: guix-patches;

Reported by: Adam Van Ymeren <adam <at> vany.ca>

Date: Thu, 23 Nov 2017 20:06:02 UTC

Severity: normal

Tags: patch

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Leo Famulari <leo <at> famulari.name>
To: Adam Van Ymeren <adam <at> vany.ca>
Cc: 29415 <at> debbugs.gnu.org
Subject: [bug#29415] [PATCH] gnu: python-axolotl: Update to 0.1.39 and fix build.
Date: Fri, 24 Nov 2017 19:09:52 -0500
[Message part 1 (text/plain, inline)]
On Thu, Nov 23, 2017 at 03:04:46PM -0500, Adam Van Ymeren wrote:

Hi,

> Patch taken from the debian package for python-axolotl-0.1.39.
> 
> python-axolotl has been failing since March,
> https://hydra.gnu.org/job/gnu/master/python-axolotl-0.1.35.x86_64-linux
> 
> This also fixes the OMEMO and OTR plugins for Gajim work.

Thanks for looking into this and sending the patch.

> diff --git a/gnu/packages/patches/python-axolotl-removes-IV-parameter-at-AES-creation.patch b/gnu/packages/patches/python-axolotl-removes-IV-parameter-at-AES-creation.patch
> new file mode 100644
> index 000000000..b25806ca2
> --- /dev/null
> +++ b/gnu/packages/patches/python-axolotl-removes-IV-parameter-at-AES-creation.patch
> @@ -0,0 +1,21 @@
> +Description: Removes IV paramenter from AES constructor, since it is not necessary for ctr mode.
> +Author: Josue Ortega <josue <at> debian.org>
> +Last-Update: 2017-04-13
> +
> +--- a/axolotl/sessioncipher.py
> ++++ b/axolotl/sessioncipher.py
> +@@ -228,13 +228,7 @@
> +         # counterint = struct.unpack(">L", counterbytes)[0]
> +         # counterint = int.from_bytes(counterbytes, byteorder='big')
> +         ctr = Counter.new(128, initial_value=counter)
> +-
> +-        # cipher = AES.new(key, AES.MODE_CTR, counter=ctr)
> +-        ivBytes = bytearray(16)
> +-        ByteUtil.intToByteArray(ivBytes, 0, counter)
> +-
> +-        cipher = AES.new(key, AES.MODE_CTR, IV=bytes(ivBytes), counter=ctr)
> +-
> ++        cipher = AES.new(key, AES.MODE_CTR, counter=ctr)
> +         return cipher

I think this change should be submitted upstream, which is here:

https://github.com/tgalal/python-axolotl

Can you do that? We wouldn't have to wait for a new release of
python-axolotl, but we should wait to hear what the upstream maintainer
thinks.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 7 years and 110 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.