<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pycrypto.git, branch bugfixes-wip</title>
<subtitle>github.com: dlitz/pycrypto.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/'/>
<entry>
<title>[Fix LP#1176482] Restore previous behavior of the block cipher 'IV' attribute</title>
<updated>2013-05-05T08:45:23+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-05-05T06:29:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=c273b6c237303cf6d09f5d33bdb58113df4dc679'/>
<id>c273b6c237303cf6d09f5d33bdb58113df4dc679</id>
<content type='text'>
PEP 272 describes the behavior of the block cipher 'IV' attribute as
follows:

    IV

        Contains the initial value which will be used to start a
        cipher feedback mode; it will always be a string exactly one
        block in length. After encrypting or decrypting a string,
        this value is updated to reflect the modified feedback text.
        It is read-only, and cannot be assigned a new value.

In versions of PyCrypto prior to 2.6, the implementation of the 'IV'
attribute matched this description, except that the attribute was
also writable and could modify the behavior of the cipher.

In PyCrypto 2.6, this behavior was changed: The 'IV' attribute was no
longer updated during encryptions and decryptions, and writing to it no
longer had any effect.

PyCrypto 2.5 and below:

    &gt;&gt;&gt; from Crypto.Cipher import AES
    &gt;&gt;&gt; ciph = AES.new("\0"*16, AES.MODE_CBC, "ABCDEFGHIJKLMNOP")
    &gt;&gt;&gt; ciph.encrypt("\0"*16)
    'a\xd7\x82X\xeb\x1a\xbdo\xffG\x9d\x1d\xab\xb6\x10;'
    &gt;&gt;&gt; ciph.IV
    'a\xd7\x82X\xeb\x1a\xbdo\xffG\x9d\x1d\xab\xb6\x10;'

PyCrypto 2.6:

    &gt;&gt;&gt; from Crypto.Cipher import AES
    &gt;&gt;&gt; ciph = AES.new("\0"*16, AES.MODE_CBC, "ABCDEFGHIJKLMNOP")
    &gt;&gt;&gt; ciph.encrypt("\0"*16)
    'a\xd7\x82X\xeb\x1a\xbdo\xffG\x9d\x1d\xab\xb6\x10;'
    &gt;&gt;&gt; ciph.IV
    'ABCDEFGHIJKLMNOP'

The bug was introduced at the same time that we introduced Python
wrappers around the native C objects.

Bug introduced: commit 6f9fe103a582999c397f7bc8a2248613a207b780
Bug report: https://bugs.launchpad.net/pycrypto/+bug/1176482

This commit restores the previous (PyCrypto 2.5) behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PEP 272 describes the behavior of the block cipher 'IV' attribute as
follows:

    IV

        Contains the initial value which will be used to start a
        cipher feedback mode; it will always be a string exactly one
        block in length. After encrypting or decrypting a string,
        this value is updated to reflect the modified feedback text.
        It is read-only, and cannot be assigned a new value.

In versions of PyCrypto prior to 2.6, the implementation of the 'IV'
attribute matched this description, except that the attribute was
also writable and could modify the behavior of the cipher.

In PyCrypto 2.6, this behavior was changed: The 'IV' attribute was no
longer updated during encryptions and decryptions, and writing to it no
longer had any effect.

PyCrypto 2.5 and below:

    &gt;&gt;&gt; from Crypto.Cipher import AES
    &gt;&gt;&gt; ciph = AES.new("\0"*16, AES.MODE_CBC, "ABCDEFGHIJKLMNOP")
    &gt;&gt;&gt; ciph.encrypt("\0"*16)
    'a\xd7\x82X\xeb\x1a\xbdo\xffG\x9d\x1d\xab\xb6\x10;'
    &gt;&gt;&gt; ciph.IV
    'a\xd7\x82X\xeb\x1a\xbdo\xffG\x9d\x1d\xab\xb6\x10;'

PyCrypto 2.6:

    &gt;&gt;&gt; from Crypto.Cipher import AES
    &gt;&gt;&gt; ciph = AES.new("\0"*16, AES.MODE_CBC, "ABCDEFGHIJKLMNOP")
    &gt;&gt;&gt; ciph.encrypt("\0"*16)
    'a\xd7\x82X\xeb\x1a\xbdo\xffG\x9d\x1d\xab\xb6\x10;'
    &gt;&gt;&gt; ciph.IV
    'ABCDEFGHIJKLMNOP'

The bug was introduced at the same time that we introduced Python
wrappers around the native C objects.

Bug introduced: commit 6f9fe103a582999c397f7bc8a2248613a207b780
Bug report: https://bugs.launchpad.net/pycrypto/+bug/1176482

This commit restores the previous (PyCrypto 2.5) behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix LP#1132550: Expect uppercase 'IV' kwarg instead of lowercase 'iv' for MODE_OPENPGP</title>
<updated>2013-05-05T08:41:30+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-05-05T08:17:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=4ce0dd74b36af9f96747da650aed84bbe93c76df'/>
<id>4ce0dd74b36af9f96747da650aed84bbe93c76df</id>
<content type='text'>
For most modes, the IV is passed as a kward named 'IV' (uppercase), but
for MODE_OPENPGP, it needed to be 'iv' (lowercase).

This change does not affect the use of positional arguments with
MODE_OPENPGP, and it does not affect the other modes.

Bug report: https://bugs.launchpad.net/pycrypto/+bug/1132550
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For most modes, the IV is passed as a kward named 'IV' (uppercase), but
for MODE_OPENPGP, it needed to be 'iv' (lowercase).

This change does not affect the use of positional arguments with
MODE_OPENPGP, and it does not affect the other modes.

Bug report: https://bugs.launchpad.net/pycrypto/+bug/1132550
</pre>
</div>
</content>
</entry>
<entry>
<title>Re-generate configure script</title>
<updated>2013-05-05T08:40:59+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-05-05T08:40:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=1a19b607881311e7a30bbedab2bb49fa45019250'/>
<id>1a19b607881311e7a30bbedab2bb49fa45019250</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use AX_CHECK_COMPILE_FLAG to detect -maes</title>
<updated>2013-04-27T20:03:15+00:00</updated>
<author>
<name>Sebastian Ramacher</name>
<email>sebastian+dev@ramacher.at</email>
</author>
<published>2013-04-27T20:03:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=8b8f1eb94d4f4cb36654e8b634bad4fdc60ac567'/>
<id>8b8f1eb94d4f4cb36654e8b634bad4fdc60ac567</id>
<content type='text'>
Signed-off-by: Sebastian Ramacher &lt;sebastian+dev@ramacher.at&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sebastian Ramacher &lt;sebastian+dev@ramacher.at&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pct-speedtest.py: Test the random module</title>
<updated>2013-04-22T06:51:33+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-04-22T06:51:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=b58ac57d42e62ed0137784b5ba8bcf69a475b972'/>
<id>b58ac57d42e62ed0137784b5ba8bcf69a475b972</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>FortunaAccumulator: Use time.monotonic if available (i.e. Python 3.3 and later)</title>
<updated>2013-04-22T06:24:23+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-04-22T06:24:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=22d7760ae7346d80a6c54b1549e9a1d560c239bc'/>
<id>22d7760ae7346d80a6c54b1549e9a1d560c239bc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>AES-NI support: Python 2.1 Backward compatibility</title>
<updated>2013-04-22T03:41:18+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-04-22T03:18:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=cce74edc6c792efbe402eca681a7cead4836f543'/>
<id>cce74edc6c792efbe402eca681a7cead4836f543</id>
<content type='text'>
- METH_NOARGS was introduced in Python 2.2.
- Python 2.1 doesn't have True and False builtins.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- METH_NOARGS was introduced in Python 2.2.
- Python 2.1 doesn't have True and False builtins.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary includes</title>
<updated>2013-04-22T03:41:18+00:00</updated>
<author>
<name>Sebastian Ramacher</name>
<email>sebastian@ramacher.at</email>
</author>
<published>2013-02-10T01:30:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=da01e9d8442b2aaf0dc69d93ac23b982b3288571'/>
<id>da01e9d8442b2aaf0dc69d93ac23b982b3288571</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial AES-NI support</title>
<updated>2013-04-22T03:41:18+00:00</updated>
<author>
<name>Sebastian Ramacher</name>
<email>sebastian@ramacher.at</email>
</author>
<published>2013-02-04T13:44:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=e1ce77b1673db76fb46d87effa7b1a1dc083d9b7'/>
<id>e1ce77b1673db76fb46d87effa7b1a1dc083d9b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add pycrypto_common.h and clean up a bunch of miscellaneous includes &amp; typedefs</title>
<updated>2013-04-22T03:41:18+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-02-21T08:45:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=1dd8353cc490f954677285415ec01e253f84b93d'/>
<id>1dd8353cc490f954677285415ec01e253f84b93d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
