[Python-modules-commits] r21961 - in packages/python-crypto/trunk/debian (3 files)

sramacher-guest at users.alioth.debian.org sramacher-guest at users.alioth.debian.org
Sun May 27 23:58:45 UTC 2012


    Date: Sunday, May 27, 2012 @ 23:58:44
  Author: sramacher-guest
Revision: 21961

debian/patches/fix-cipher-iv-documentation.patch: Add patch from Stefano
Rivera to document the actual behavior of the ciphers' new method with
respect to the IV.

Added:
  packages/python-crypto/trunk/debian/patches/fix-cipher-iv-documentation.patch
Modified:
  packages/python-crypto/trunk/debian/changelog
  packages/python-crypto/trunk/debian/patches/series

Modified: packages/python-crypto/trunk/debian/changelog
===================================================================
--- packages/python-crypto/trunk/debian/changelog	2012-05-27 20:50:52 UTC (rev 21960)
+++ packages/python-crypto/trunk/debian/changelog	2012-05-27 23:58:44 UTC (rev 21961)
@@ -1,3 +1,11 @@
+python-crypto (2.6-2) UNRELEASED; urgency=low
+
+  * debian/patches/fix-cipher-iv-documentation.patch: Add patch from Stefano
+    Rivera to document the actual behavior of the ciphers' new method with
+    respect to the IV.
+
+ -- Sebastian Ramacher <s.ramacher at gmx.at>  Mon, 28 May 2012 01:15:25 +0200
+
 python-crypto (2.6-1) unstable; urgency=high
 
   * New upstream release.

Added: packages/python-crypto/trunk/debian/patches/fix-cipher-iv-documentation.patch
===================================================================
--- packages/python-crypto/trunk/debian/patches/fix-cipher-iv-documentation.patch	                        (rev 0)
+++ packages/python-crypto/trunk/debian/patches/fix-cipher-iv-documentation.patch	2012-05-27 23:58:44 UTC (rev 21961)
@@ -0,0 +1,91 @@
+Description: Update doctring to document actual behavior.
+ The IV passed to the cipher's new method may not be empty if a mode different
+ from MODE_EBC and MODE_CTR is used.
+Author: Stefano Rivera <stefano at rivera.za.net>
+Origin: https://github.com/dlitz/pycrypto/commit/cbc13b3f
+Last-Update: 2012-05-28
+
+diff --git a/lib/Crypto/Cipher/AES.py b/lib/Crypto/Cipher/AES.py
+index 14f68d8..eb91c5f 100644
+--- a/lib/Crypto/Cipher/AES.py
++++ b/lib/Crypto/Cipher/AES.py
+@@ -79,8 +79,7 @@ def new(key, *args, **kwargs):
+         actually the *encrypted* IV which was prefixed to the ciphertext).
+         It is mandatory.
+        
+-        For all other modes, it must be `block_size` bytes longs. It is optional and
+-        when not present it will be given a default value of all zeroes.
++        For all other modes, it must be `block_size` bytes longs.
+       counter : callable
+         (*Only* `MODE_CTR`). A stateful function that returns the next
+         *counter block*, which is a byte string of `block_size` bytes.
+diff --git a/lib/Crypto/Cipher/ARC2.py b/lib/Crypto/Cipher/ARC2.py
+index 7b5f43a..ddcca47 100644
+--- a/lib/Crypto/Cipher/ARC2.py
++++ b/lib/Crypto/Cipher/ARC2.py
+@@ -91,8 +91,7 @@ def new(key, *args, **kwargs):
+         actually the *encrypted* IV which was prefixed to the ciphertext).
+         It is mandatory.
+        
+-        For all other modes, it must be `block_size` bytes longs. It is optional and
+-        when not present it will be given a default value of all zeroes.
++        For all other modes, it must be `block_size` bytes longs.
+       counter : callable
+         (*Only* `MODE_CTR`). A stateful function that returns the next
+         *counter block*, which is a byte string of `block_size` bytes.
+diff --git a/lib/Crypto/Cipher/Blowfish.py b/lib/Crypto/Cipher/Blowfish.py
+index 3f12bea..2ce78e9 100644
+--- a/lib/Crypto/Cipher/Blowfish.py
++++ b/lib/Crypto/Cipher/Blowfish.py
+@@ -85,8 +85,7 @@ def new(key, *args, **kwargs):
+         actually the *encrypted* IV which was prefixed to the ciphertext).
+         It is mandatory.
+        
+-        For all other modes, it must be `block_size` bytes longs. It is optional and
+-        when not present it will be given a default value of all zeroes.
++        For all other modes, it must be `block_size` bytes longs.
+       counter : callable
+         (*Only* `MODE_CTR`). A stateful function that returns the next
+         *counter block*, which is a byte string of `block_size` bytes.
+diff --git a/lib/Crypto/Cipher/CAST.py b/lib/Crypto/Cipher/CAST.py
+index f08dab3..5f009a7 100644
+--- a/lib/Crypto/Cipher/CAST.py
++++ b/lib/Crypto/Cipher/CAST.py
+@@ -88,8 +88,7 @@ def new(key, *args, **kwargs):
+         actually the *encrypted* IV which was prefixed to the ciphertext).
+         It is mandatory.
+        
+-        For all other modes, it must be `block_size` bytes longs. It is optional and
+-        when not present it will be given a default value of all zeroes.
++        For all other modes, it must be `block_size` bytes longs.
+       counter : callable
+         (*Only* `MODE_CTR`). A stateful function that returns the next
+         *counter block*, which is a byte string of `block_size` bytes.
+diff --git a/lib/Crypto/Cipher/DES.py b/lib/Crypto/Cipher/DES.py
+index 2fae42f..17016cb 100644
+--- a/lib/Crypto/Cipher/DES.py
++++ b/lib/Crypto/Cipher/DES.py
+@@ -83,8 +83,7 @@ def new(key, *args, **kwargs):
+         actually the *encrypted* IV which was prefixed to the ciphertext).
+         It is mandatory.
+        
+-        For all other modes, it must be `block_size` bytes longs. It is optional and
+-        when not present it will be given a default value of all zeroes.
++        For all other modes, it must be `block_size` bytes longs.
+       counter : callable
+         (*Only* `MODE_CTR`). A stateful function that returns the next
+         *counter block*, which is a byte string of `block_size` bytes.
+diff --git a/lib/Crypto/Cipher/DES3.py b/lib/Crypto/Cipher/DES3.py
+index 7fedac8..56d413b 100644
+--- a/lib/Crypto/Cipher/DES3.py
++++ b/lib/Crypto/Cipher/DES3.py
+@@ -96,8 +96,7 @@ def new(key, *args, **kwargs):
+         actually the *encrypted* IV which was prefixed to the ciphertext).
+         It is mandatory.
+        
+-        For all other modes, it must be `block_size` bytes longs. It is optional and
+-        when not present it will be given a default value of all zeroes.
++        For all other modes, it must be `block_size` bytes longs.
+       counter : callable
+         (*Only* `MODE_CTR`). A stateful function that returns the next
+         *counter block*, which is a byte string of `block_size` bytes.


Property changes on: packages/python-crypto/trunk/debian/patches/fix-cipher-iv-documentation.patch
___________________________________________________________________
Added: svn:keywords
   + Id

Modified: packages/python-crypto/trunk/debian/patches/series
===================================================================
--- packages/python-crypto/trunk/debian/patches/series	2012-05-27 20:50:52 UTC (rev 21960)
+++ packages/python-crypto/trunk/debian/patches/series	2012-05-27 23:58:44 UTC (rev 21961)
@@ -1,3 +1,4 @@
 dont-drop-g.patch
 fix-unresolved-reference-size.patch
 fix-epydoc-ignore.patch
+fix-cipher-iv-documentation.patch




More information about the Python-modules-commits mailing list