Commit graph

9 commits

Author SHA1 Message Date
Legrandin
ec7f3c8662 Remove _fastmath and _slowmath from code base 2014-12-06 12:04:12 +01:00
Legrandin
ad8b4b7e5d Removed disable_shortcut and overflow parameters from Counter 2014-06-16 20:38:26 +02:00
Legrandin
fcdb69f2fb Remove obsolete Crypto.Random.randpool 2014-06-16 20:38:26 +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
Dwayne C. Litzenberger
9cfb332b22 autoconf: only use side-channel secured mpz_powm_sec if it's available (libgmp 5 or later) 2011-10-10 14:49:26 -04:00
Dwayne C. Litzenberger
79f6c64c58 getRandomNumber API compatibility:
Legrandin's getStrongPrime() patch changed the behaviour of
Crypto.Util.number.getRandomNumber() to something that is more like what
people would expect, but different from what we did before.  This change
modifies Crypto.Util.number in the following ways:

- Rename getRandomNBitNumber -> getRandomNBitInteger
  and getRandomNumber -> getRandomInteger
- Preserve old behaviour by making getRandomNumber work the same as
  getRandomNBitInteger.
- Emit a DeprecationWarning when the old getRandomNumber is used.
2010-08-02 17:03:29 -04:00
Dwayne C. Litzenberger
5236ec3b7f pct_warnings: Clarify the docstring on ClockRewindWarning 2009-08-28 12:20:19 -04:00
Dwayne C. Litzenberger
386de1947b Legal: Dedicate my files to the public domain.
In an attempt to simplify the copyright status of PyCrypto, I'm placing my
code into the public domain, and encouraging other contributors to do the
same.

I have used a public domain dedication that was recommended in a book on FOSS legal
issues[1], followed by the warranty disclaimer boilerplate from the MIT license.

[1] _Intellectual Property and Open Source: A Practical Guide to Protecting
    Code_, a book written by Van Lindberg and published by O'Reilly Media.
    (ISBN 978-0-596-51796-0)
2009-03-01 10:22:51 -05:00
Dwayne C. Litzenberger
ff8a657a8d cleanup: Move modules to "lib/Crypto" subdirectory.
This will avoid the previous situation where scripts like the old "test.py"
get included accidentally in a release.  It also frees us to put additional
build scripts in the top-level directory of the source tree.
2009-02-28 13:14:53 -05:00
Renamed from pct_warnings.py (Browse further)