unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob b25806ca2d6be3877b4667a161351c4778678b5c 746 bytes (raw)
name: gnu/packages/patches/python-axolotl-removes-IV-parameter-at-AES-creation.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
Description: Removes IV paramenter from AES constructor, since it is not necessary for ctr mode.
Author: Josue Ortega <josue@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
 
 

debug log:

solving b25806ca2 ...
found b25806ca2 in https://yhetil.org/guix-patches/87y3mw3go1.fsf@vany.ca/

applying [1/1] https://yhetil.org/guix-patches/87y3mw3go1.fsf@vany.ca/
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

1:26: trailing whitespace.
 
1:27: trailing whitespace.
 
Checking patch gnu/packages/patches/python-axolotl-removes-IV-parameter-at-AES-creation.patch...
1:26: new blank line at EOF.
+
Applied patch gnu/packages/patches/python-axolotl-removes-IV-parameter-at-AES-creation.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 b25806ca2d6be3877b4667a161351c4778678b5c	gnu/packages/patches/python-axolotl-removes-IV-parameter-at-AES-creation.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).