<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pycrypto.git/lib/Crypto/Protocol, branch master</title>
<subtitle>github.com: dlitz/pycrypto.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/'/>
<entry>
<title>Rename S2V -&gt; _S2V until we come up with a real PRF API</title>
<updated>2013-10-21T00:48:54+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-10-21T00:46:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=7bb217aedd421fc89120baf98b719bf49c4f5fb7'/>
<id>7bb217aedd421fc89120baf98b719bf49c4f5fb7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>More ValueError -&gt; TypeError</title>
<updated>2013-10-20T20:30:22+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-09-29T10:01:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=acbd4dedc88325c4799d5f4df8a2f8bc0a040479'/>
<id>acbd4dedc88325c4799d5f4df8a2f8bc0a040479</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for SIV (Synthetic IV) mode</title>
<updated>2013-10-20T20:30:21+00:00</updated>
<author>
<name>Legrandin</name>
<email>helderijs@gmail.com</email>
</author>
<published>2013-05-22T20:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=199a9741a1849066d070b114333fcf90bc73c55a'/>
<id>199a9741a1849066d070b114333fcf90bc73c55a</id>
<content type='text'>
This patch add supports for SIV, an AEAD block cipher
mode defined in RFC5297. SIV is only valid for AES.

The PRF of SIV (S2V) is factored out in the Protocol.KDF module.

See the following example to get a feeling of the API (slightly
different than other AEAD mode, during decryption).

Encryption (Python 2):

	&gt;&gt;&gt; from Crypto.Cipher import AES
	&gt;&gt;&gt; key = b'0'*32
	&gt;&gt;&gt; siv = AES.new(key, AES.MODE_SIV)
	&gt;&gt;&gt; ct  = siv.encrypt(b'Message')
	&gt;&gt;&gt; mac = siv.digest()

Decryption (Python 2):

	&gt;&gt;&gt; from Crypto.Cipher import AES, MacMismatchError
	&gt;&gt;&gt; key = b'0'*32
	&gt;&gt;&gt; siv = AES.new(key, AES.MODE_SIV)
	&gt;&gt;&gt; pt  = siv.decrypt(ct + mac)
	&gt;&gt;&gt; try:
	&gt;&gt;&gt;	siv.verify(mac)
	&gt;&gt;&gt;	print "Plaintext", pt
	&gt;&gt;&gt; except MacMismatchError:
	&gt;&gt;&gt;     print "Error"

This change also fixes the description/design of AEAD API.

With SIV (RFC5297), decryption can only start when the MAC is known.
The original AEAD API did not support that.

For SIV the MAC is now exceptionally passed together with the ciphertext
to the decrypt() method.

[dlitz@dlitz.net: Included changes from the following commits from the author's pull request:]
- [9c13f9c] Rename 'IV' parameter to 'nonce' for AEAD modes.
- [d7727fb] Fix description/design of AEAD API.
- [fb62fae] ApiUsageError becomes TypeError [whitespace]
- [4ec64d8] Removed last references to ApiUsageError [whitespace]
- [ee46922] Removed most 'import *' statements
- [ca460a7] Made blockalgo.py more PEP-8 compliant;
            The second parameter of the _GHASH constructor
            is now the length of the block (block_size)
            and not the full module.
[dlitz@dlitz.net: A conflict that was not resolved in the previous
                  commit was originally resolved here.  Moved the
                  resolution to the previous commit.]
[dlitz@dlitz.net: Replaced MacMismatchError with ValueError]
[dlitz@dlitz.net: Replaced ApiUsageError with TypeError]
[dlitz@dlitz.net: Whitespace fixed with "git rebase --whitespace=fix"]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch add supports for SIV, an AEAD block cipher
mode defined in RFC5297. SIV is only valid for AES.

The PRF of SIV (S2V) is factored out in the Protocol.KDF module.

See the following example to get a feeling of the API (slightly
different than other AEAD mode, during decryption).

Encryption (Python 2):

	&gt;&gt;&gt; from Crypto.Cipher import AES
	&gt;&gt;&gt; key = b'0'*32
	&gt;&gt;&gt; siv = AES.new(key, AES.MODE_SIV)
	&gt;&gt;&gt; ct  = siv.encrypt(b'Message')
	&gt;&gt;&gt; mac = siv.digest()

Decryption (Python 2):

	&gt;&gt;&gt; from Crypto.Cipher import AES, MacMismatchError
	&gt;&gt;&gt; key = b'0'*32
	&gt;&gt;&gt; siv = AES.new(key, AES.MODE_SIV)
	&gt;&gt;&gt; pt  = siv.decrypt(ct + mac)
	&gt;&gt;&gt; try:
	&gt;&gt;&gt;	siv.verify(mac)
	&gt;&gt;&gt;	print "Plaintext", pt
	&gt;&gt;&gt; except MacMismatchError:
	&gt;&gt;&gt;     print "Error"

This change also fixes the description/design of AEAD API.

With SIV (RFC5297), decryption can only start when the MAC is known.
The original AEAD API did not support that.

For SIV the MAC is now exceptionally passed together with the ciphertext
to the decrypt() method.

[dlitz@dlitz.net: Included changes from the following commits from the author's pull request:]
- [9c13f9c] Rename 'IV' parameter to 'nonce' for AEAD modes.
- [d7727fb] Fix description/design of AEAD API.
- [fb62fae] ApiUsageError becomes TypeError [whitespace]
- [4ec64d8] Removed last references to ApiUsageError [whitespace]
- [ee46922] Removed most 'import *' statements
- [ca460a7] Made blockalgo.py more PEP-8 compliant;
            The second parameter of the _GHASH constructor
            is now the length of the block (block_size)
            and not the full module.
[dlitz@dlitz.net: A conflict that was not resolved in the previous
                  commit was originally resolved here.  Moved the
                  resolution to the previous commit.]
[dlitz@dlitz.net: Replaced MacMismatchError with ValueError]
[dlitz@dlitz.net: Replaced ApiUsageError with TypeError]
[dlitz@dlitz.net: Whitespace fixed with "git rebase --whitespace=fix"]
</pre>
</div>
</content>
</entry>
<entry>
<title>Hash: Rename SHA-&gt;SHA1 and RIPEMD-&gt;RIPEMD160 (1/2)</title>
<updated>2013-02-17T00:20:23+00:00</updated>
<author>
<name>Dwayne Litzenberger</name>
<email>dlitz@dlitz.net</email>
</author>
<published>2013-02-17T00:06:32+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=755375bb7d866a01e19153f5809772f4474eb94d'/>
<id>755375bb7d866a01e19153f5809772f4474eb94d</id>
<content type='text'>
These algorithm names were confusing, because there are actually
algorithms called "SHA" (a.k.a. SHA-0) and "RIPEMD" (the original
version).

This commit just renames the modules, with no backward-compatibility
support.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These algorithm names were confusing, because there are actually
algorithms called "SHA" (a.k.a. SHA-0) and "RIPEMD" (the original
version).

This commit just renames the modules, with no backward-compatibility
support.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes to make test suite pass for Python 2.1 and Python 3</title>
<updated>2012-05-11T20:57:49+00:00</updated>
<author>
<name>Legrandin</name>
<email>gooksankoo@hoiptorrow.mailexpire.com</email>
</author>
<published>2012-05-11T20:57:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=4ce6b8d7f1c070687f0144736dd9a14b4b603b7d'/>
<id>4ce6b8d7f1c070687f0144736dd9a14b4b603b7d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix documentation for PKCS#1 modules.</title>
<updated>2012-04-19T20:40:39+00:00</updated>
<author>
<name>Legrandin</name>
<email>gooksankoo@hoiptorrow.mailexpire.com</email>
</author>
<published>2012-04-19T20:40:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=6f312637208cc70b231892109564e2aebc92728a'/>
<id>6f312637208cc70b231892109564e2aebc92728a</id>
<content type='text'>
Objects used by PKCS#1 modules were treated as private,
and therefore ignored by epydoc.

Replaced SHA module with None as PBKDF1 default parameter value, because it was
not displayed nicely by epydoc. Default value is assigned in the body.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Objects used by PKCS#1 modules were treated as private,
and therefore ignored by epydoc.

Replaced SHA module with None as PBKDF1 default parameter value, because it was
not displayed nicely by epydoc. Default value is assigned in the body.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed short digest exception message in PBKDF1.</title>
<updated>2012-01-17T22:23:17+00:00</updated>
<author>
<name>Legrandin</name>
<email>gooksankoo@hoiptorrow.mailexpire.com</email>
</author>
<published>2012-01-17T22:23:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=bec515ac7572cf1217fcfc38ebb84aa675c10e1a'/>
<id>bec515ac7572cf1217fcfc38ebb84aa675c10e1a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merged from upstream (py3k support) and modified so that all unit tests pass.</title>
<updated>2011-10-18T21:20:26+00:00</updated>
<author>
<name>Legrandin</name>
<email>gooksankoo@hoiptorrow.mailexpire.com</email>
</author>
<published>2011-10-18T21:20:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=c22fa18c0dedb43a8b19dcb9b29512ba59e1764b'/>
<id>c22fa18c0dedb43a8b19dcb9b29512ba59e1764b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add new module Crypto.Protocol.KDF with two PKCS#5 key derivation algorithms.</title>
<updated>2011-09-22T18:51:46+00:00</updated>
<author>
<name>Legrandin</name>
<email>gooksankoo@hoiptorrow.mailexpire.com</email>
</author>
<published>2011-09-22T18:51:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=8a69efb465fe9ae5bed921fd505a6a569c98d40d'/>
<id>8a69efb465fe9ae5bed921fd505a6a569c98d40d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix AllOrNothing and random.sample()</title>
<updated>2011-01-06T12:18:12+00:00</updated>
<author>
<name>Thorsten Behrens</name>
<email>sbehrens@gmx.li</email>
</author>
<published>2011-01-06T12:18:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycrypto.git/commit/?id=60896cc61a960e6bfef680ad890c0f848c9fc27c'/>
<id>60896cc61a960e6bfef680ad890c0f848c9fc27c</id>
<content type='text'>
o AllOrNothing no longer fails occasionally. Patch by Lorenz Quack
o random.sample() works on Python 2.1. Patch by Paul Koning and Lorenz
  Quack
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
o AllOrNothing no longer fails occasionally. Patch by Lorenz Quack
o random.sample() works on Python 2.1. Patch by Paul Koning and Lorenz
  Quack
</pre>
</div>
</content>
</entry>
</feed>
