Commit graph

105 commits

Author SHA1 Message Date
Legrandin
b2cb87847c Use ReadTheDocs theme 2016-09-20 00:13:52 +02:00
Legrandin
ce31e3122b Update features list 2015-10-28 22:09:16 +01:00
Legrandin
b8d07cbc24 Prepare docs for release 3.3 2015-10-28 21:35:55 +01:00
Legrandin
bdda4f9133 Updates to docs 2015-10-28 21:21:29 +01:00
Legrandin
dde5b755b5 Licensing of MPIR (for Windows wheels only)
[skip ci]
2015-10-10 23:07:38 +02:00
Legrandin
1df56d2061 Prepare release 3.2.1 2015-09-08 21:32:41 +02:00
Legrandin
71083f56a8 Update feature list 2015-09-08 21:29:53 +02:00
Legrandin
603d6cc6b2 Prepare for release 3.3 2015-09-06 20:57:16 +02:00
Legrandin
974efb5b99 Update release date of 3.2 2015-09-05 22:29:31 +02:00
Legrandin
5d2b133b63 Update to documentation to mention OCB 2015-05-29 10:44:40 -04:00
Legrandin
03b14b6a0c Simplify C code by moving caches under Python 2015-05-29 09:06:49 -04:00
Legrandin
6257fa5114 Add support for ChaCha20. 2015-04-30 11:44:34 -04:00
Legrandin
08bb8061b6 Mention BLAKE2 in feature lists 2015-04-16 21:00:59 +02:00
Legrandin
c6a9aadd1e Add News section to intrdocution page. 2015-03-15 21:22:35 +01:00
Legrandin
f0fa8f0ed3 Update to README and introduction 2015-02-21 22:06:17 +01:00
Legrandin
c1589a107f Link to github ribbon uses HTTPS 2014-07-14 12:20:39 +02:00
Legrandin
ac86270f6c Add github fork-me banner 2014-06-27 22:33:14 +02:00
Legrandin
edfc609741 Add more references to AEAD modes in the example 2014-06-27 18:49:22 +02:00
Legrandin
4da8d7f032 Add examples about RSA key generation and RSA encryption 2014-06-27 11:26:24 -04:00
Legrandin
b61fd4c5de Add example for symmetric encryption 2014-06-26 23:17:20 +02:00
Legrandin
462ffd0565 Add github badge to documentation 2014-06-26 22:39:31 +02:00
Legrandin
78bfd16e87 Switched font to Trebuchet for readability 2014-06-26 22:23:47 +02:00
Legrandin
bb9ceb0146 Switch sphinx theme to alabaster 2014-06-25 23:05:32 +02:00
Legrandin
b4da31e55d Fix to version parser 2014-06-24 21:41:33 +02:00
Legrandin
7b0f6ad77c Move LEGAL into Doc directory 2014-06-23 22:43:00 +02:00
Legrandin
8675e6f03f Start licensing under BSD 2-Clause 2014-06-23 22:23:38 +02:00
Legrandin
ae3969e5fa Removed Crypto.Protocol.AllOrNothing and Chaffing modules 2014-06-22 12:35:41 +02:00
Legrandin
f1aa557a0d Update to documentation 2014-06-21 22:26:41 +02:00
Legrandin
a5fa43dfd1 Switch to haiku theme for documentation. 2014-06-18 21:29:04 +02:00
Legrandin
98d5c0b47b Bump version to 3.0rc2
This patch also allows one to change version in one place only.
2014-06-17 21:02:01 +02:00
Legrandin
22de13942f Update documentation 2014-06-16 21:43:19 +02:00
Legrandin
381ae1217d Remove frames from epydoc output 2014-06-16 20:38:26 +02:00
Legrandin
c198d58790 Add sphinx configuration 2014-06-16 20:38:26 +02:00
Legrandin
a9df7886a9 Update epydoc configuration and remove warnings 2014-06-16 20:36:36 +02:00
Legrandin
5201380711 Remove obsolete documentation 2014-06-16 20:36:36 +02:00
Dwayne Litzenberger
af058ee6f5 Release v2.7a1 2013-10-21 11:23:43 -07:00
Legrandin
199a9741a1 Add support for SIV (Synthetic IV) mode
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):

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

Decryption (Python 2):

	>>> from Crypto.Cipher import AES, MacMismatchError
	>>> key = b'0'*32
	>>> siv = AES.new(key, AES.MODE_SIV)
	>>> pt  = siv.decrypt(ct + mac)
	>>> try:
	>>>	siv.verify(mac)
	>>>	print "Plaintext", pt
	>>> except MacMismatchError:
	>>>     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"]
2013-10-20 13:30:21 -07:00
Legrandin
57104488fa Add support for CCM mode (AES only).
[dlitz@dlitz.net: Included changes from the following commits from the author's pull request:]
- [5306cf3] Added support for CCM mode (AES cipher only)
- [9abe301] Added CCM tests
- [f0c1395] Add MacMismatchError and ApiUsageError
- [fb62fae] ApiUsageError becomes TypeError
- [9c13f9c] Rename 'IV' parameter to 'nonce' for AEAD modes.
- [4ec64d8] Removed last references to ApiUsageError
- [80bfd35] Corrected AES-CCM examples
[dlitz@dlitz.net: Removed unrelated documentation change]
[dlitz@dlitz.net: Renamed 'targs' back to 'args']
[dlitz@dlitz.net: Whitespace fixed with "git rebase --whitespace=fix"]
2013-10-20 13:30:21 -07:00
Dwayne Litzenberger
d044a47833 This is the PyCrypto 2.6.1 release.
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 
 iFYEABEKAAYFAlJcZFMACgkQm4qoyix3/7Df6wDfUkS+QVyb7quQJrBiLi3jLAin
 Otvcc25QTHgoTADePAglh6rbEOMNdyNUFinTeV1qwkOm/Q3YRiyiLA==
 =XujS
 -----END PGP SIGNATURE-----

Merge tag 'v2.6.1' (fix CVE-2013-1445)

This is the PyCrypto 2.6.1 release.

Dwayne Litzenberger (4):
      Random: Make Crypto.Random.atfork() set last_reseed=None (CVE-2013-1445)
      Fortuna: Add comments for reseed_interval and min_pool_size to FortunaAccumulator
      Update the ChangeLog
      Release v2.6.1
2013-10-20 13:28:46 -07:00
Dwayne Litzenberger
7fd528d03b Release v2.6.1
This release is identical to PyCrypto v2.6, except it fixes the
Crypto.Random race condition (CVE-2013-1445) and adds a few related
comments.
2013-10-14 14:37:38 -07:00
Dwayne Litzenberger
755375bb7d Hash: Rename SHA->SHA1 and RIPEMD->RIPEMD160 (1/2)
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.
2013-02-16 16:20:23 -08:00
Sebastian Ramacher
556cefdf08 Fix exclude-introspect.
Only the last exclude-introspect setting is considered.
2012-05-28 12:01:11 +02:00
Dwayne C. Litzenberger
373ea760f2 Release v2.6 2012-05-24 08:51:04 -04:00
Dwayne C. Litzenberger
cc990c02f3 Remove qNEW signature algorithm
I doubt anyone uses it anyway, and we have no test suite for it.
2012-05-24 07:35:20 -04:00
Legrandin
67d8cd1aaf Removed PGP mode from block ciphers 2012-05-14 19:52:30 +02:00
Legrandin
a7123247de Refreshed documentation for RSA. epydoc does not generate documentation for private methods, and inherited ones are made more explicit. 2012-04-10 21:26:33 +02:00
Dwayne C. Litzenberger
3245543c8d Release v2.5 2012-01-13 12:16:38 -05:00
Legrandin
114ca5b4d4 Merge from upstream 2011-12-22 14:55:40 +01:00
Dwayne C. Litzenberger
6fedd15136 Don't suggest the use of 384-bit RSA keys (!) in the docs. 2011-12-04 01:02:22 -05:00
Dwayne C. Litzenberger
62247ca754 Release v2.4.1 2011-11-04 15:17:40 -04:00