summaryrefslogtreecommitdiff
path: root/src/_counter.h
Commit message (Collapse)AuthorAgeFilesLines
* Add ABI check when importing _counter from block_templateDwayne Litzenberger2013-07-141-0/+2
|
* Counter: Deprecate disable_shortcut; Remove __PCT_CTR_SHORTCUT__ entirelyDwayne Litzenberger2013-07-141-1/+0
| | | | | | | | | | | | 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.
* Add pycrypto_common.h and clean up a bunch of miscellaneous includes & typedefsDwayne Litzenberger2013-04-211-10/+1
|
* Include inttypes.h or sys/inttypes.h based on what autoconf tells usDwayne Litzenberger2013-04-211-2/+4
| | | | | This should fix compilation on HP-UX 11.31. Thanks Adam Woodbeck for reporting this.
* Counter: Fix compiler warning about signed-unsigned comparisonDwayne Litzenberger2013-02-171-1/+1
|
* Fix build on Solaris 9 and earilerDwayne C. Litzenberger2011-10-101-1/+8
| | | | | | | We use <sys/inttypes.h> on Solaris platforms that don't have <stdint.h>. This should fix https://bugs.launchpad.net/pycrypto/+bug/518871, reported by Sebastian Kayser.
* Changes to allow pycrpyto to work on Python 3.x as well as 2.1 through 2.7Thorsten Behrens2010-12-281-3/+2
|
* Release the global interpreter lock during encryption, decryption, and hashing.Dwayne C. Litzenberger2009-10-121-1/+0
| | | | | | | These are the easy ones. We don't release the GIL on cipher initialization, hash initialization, or hash finalization, because those functions might make Python API calls, and we would need to add a mechism for re-acquiring the GIL in those cases.
* Check for counter wraparound when encrypting using MODE_CTRDwayne C. Litzenberger2009-10-121-0/+1
| | | | | - Add check_wraparound_func pointer to PCT_CounterObject - Call check_wraparound_func from block_template.c
* Counter: raise OverflowError by default when the counter wraps around.Dwayne C. Litzenberger2009-10-121-0/+1
| | | | | The old behaviour can be obtained by explicitly setting allow_wraparound=True when invoking Counter.new
* Counter: Add 'carry' attribute to counter objectsDwayne C. Litzenberger2009-10-121-0/+1
|
* Counter: Add disable_shortcut keyword argument (to be used for testing)Dwayne C. Litzenberger2009-10-121-0/+1
|
* Legal: Dedicate my files to the public domain.Dwayne C. Litzenberger2009-03-011-20/+17
| | | | | | | | | | | | | 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)
* MSVC-specific fixes and workaroundsDwayne C. Litzenberger2008-11-161-1/+1
|
* Util.Counter: Speed up CTR mode using shortcutDwayne C. Litzenberger2008-10-191-0/+44
This change allows CTR-mode ciphers to bypass the Python function call mechanism when using counter objects created using Crypto.Util.Counter.