Commit graph

10 commits

Author SHA1 Message Date
Legrandin
08baea4cb4 Break up block_template.c (AES only) 2015-01-05 23:06:21 +01:00
Legrandin
ad8b4b7e5d Removed disable_shortcut and overflow parameters from Counter 2014-06-16 20:38:26 +02:00
Legrandin
d83380a048 Removed support for Python<2.4 2014-06-16 20:36:35 +02:00
Dwayne Litzenberger
b6ad2b47d9 Counter: Deprecate disable_shortcut; Remove __PCT_CTR_SHORTCUT__ entirely
The `disable_shortcut` option served as a workaround in case
`__PCT_CTR_SHORTCUT__` leaked through a wrapper object, but I don't
think anyone actually used it, and it was a bad idea to expose it as
part of the public API.

Now that we do strong type checking inside block_template.c, there
shoujld be no need to ever use this option.  It's now a no-op, retained
for backward compatibility only.  It will be removed in some future
version of PyCrypto.
2013-07-14 18:32:04 -07:00
Thorsten Behrens
cb48387f66 PY3K _fastmath support
o _fastmath now builds and runs on PY3K
o Changes to setup.py to allow /usr/include for gmp.h
o Changes to setup.py to allow linking fastmath w/ static mpir
  on Windows without warning messages
o Changes to test_DSA/test_RSA to throw an exception if _fastmath
  is present but cannot be imported (due to an issue building
  _fastmath or the shared gmp/mpir libraries not being reachable)
o number.py has the code to flag a failing _fastmath, but that
  code is commented out for a better runtime experience
o Clean up the if for py21compat import - should have been == not is
o Clean up some '== None' occurences, now 'is None' instead
2010-12-29 13:21:05 -05:00
Thorsten Behrens
ca701f92f5 PY3K support for _fastmath.c; removed floordiv(a,b) hack and replaced with divmod(a,b)[0]; move to assertEqual throughout the test suite to prep for assert_ and failIf being removed in 3.3/3.4 2010-12-29 05:29:08 -05:00
Thorsten Behrens
295ce314d9 Changes to allow pycrpyto to work on Python 3.x as well as 2.1 through 2.7 2010-12-28 16:26:52 -05:00
Dwayne C. Litzenberger
74e898a3e6 SelfTest: Test new Counter anti-wraparound behaviour 2009-10-12 14:49:03 -04:00
Dwayne C. Litzenberger
22fe3248e6 SelfTest: Add tests for Counter wraparound behaviour and for the 'carry' attribute 2009-10-12 14:49:01 -04:00
Dwayne C. Litzenberger
6680b6fff7 SelfTest: Add tests for Crypto.Util.Counter 2009-10-12 14:49:01 -04:00