summaryrefslogtreecommitdiff
path: root/src/stream_template.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve C extension autodocsDwayne Litzenberger2013-07-141-0/+17
| | | | | | | | - Add __all__ to C cipher & hash modules - Update hash module docstrings to document the block_size and digest_size variables. Closes: https://bugs.launchpad.net/pycrypto/+bug/1179255
* Py3k cleanup: Module initializationDwayne Litzenberger2013-07-141-16/+26
|
* Py3k cleanup: Always use tp_getattroDwayne Litzenberger2013-07-141-22/+10
|
* Py3k cleanup: PyMODINIT_FUNCDwayne Litzenberger2013-07-141-6/+2
|
* Py3k cleanup: PyVarObject_HEAD_INITDwayne Litzenberger2013-07-141-5/+0
|
* Py3k cleanup: PyType_ReadyDwayne Litzenberger2013-07-141-2/+3
|
* Py3k cleanup: staticforward and Py_TYPEDwayne Litzenberger2013-07-141-4/+0
|
* Py3k cleanup: METH_ODwayne Litzenberger2013-07-141-5/+0
|
* Py3k cleanup: PyModule_AddIntConstantDwayne Litzenberger2013-07-141-7/+0
|
* Py3k cleanup: Remove unused is_ALGobject macroDwayne Litzenberger2013-07-141-2/+0
|
* Py3k cleanup: Define PyInt_FromLong for Python 3.x and use itDwayne Litzenberger2013-07-141-3/+2
| | | | | | This is the first of a series of changes that aims to reduce code duplication between the Python 3 and Python 2 versions of the C extensions.
* Remove pointless 'error' attribute from stream ciphersDwayne Litzenberger2013-07-141-6/+1
| | | | | Many years ago, this was removed from block_template, but not from stream_template.
* Add pycrypto_common.h and clean up a bunch of miscellaneous includes & typedefsDwayne Litzenberger2013-04-211-11/+1
|
* Fix compiler warning about "_POSIX_C_SOURCE" being redefined in string.hDwayne Litzenberger2013-02-171-1/+1
| | | | The solution is to include Python.h before string.h is included.
* Changes to allow pycrpyto to work on Python 3.x as well as 2.1 through 2.7Thorsten Behrens2010-12-281-39/+136
|
* Release the global interpreter lock during encryption, decryption, and hashing.Dwayne C. Litzenberger2009-10-121-0/+4
| | | | | | | 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.
* block_template.c & stream_template.c: Add vim modelinesDwayne C. Litzenberger2009-10-101-0/+2
|
* {block,stream,hash}_template.c: Replace the legal noticesDwayne C. Litzenberger2009-08-031-5/+18
| | | | I have permission to do this. See the LEGAL directory.
* Fix some more compiler warnings (gcc/Linux-i386)Dwayne C. Litzenberger2008-09-151-3/+3
|
* [project @ akuchling-20020525014711-0542d6c0170548df]akuchling2002-05-241-1/+3
| | | | | | | [project @ 2002-05-24 18:47:11 by akuchling] Overwriting the object is safe in Python 2.2, but not in Python 2.1 because _PyObject_Del() looks at the type pointer to see if the type is GCed or not. Instead, just zap the hash and stream cipher states.
* [project @ akuchling-20020524234241-bc4dc6959b6bf706]akuchling2002-05-241-1/+1
| | | | | [project @ 2002-05-24 16:42:41 by akuchling] Oops: PyObject_Del is actually the name to use
* [project @ akuchling-20020524225121-d7c667dfcda3cee8]akuchling2002-05-241-2/+2
| | | | | [project @ 2002-05-24 15:51:21 by akuchling] Use canonical functions for allocating/deallocating objects
* [project @ akuchling-20020523211022-16b9d8b39f46fb87]akuchling2002-05-231-6/+2
| | | | | [project @ 2002-05-23 14:10:21 by akuchling] Use memset() in deallocators
* [project @ akuchling-20020523210259-f80d7b91276c43b2]akuchling2002-05-231-4/+5
| | | | | [project @ 2002-05-23 14:02:58 by akuchling] Make the deallocators consistent
* [project @ akuchling-20020523204349-92d3d4376201e7ad]akuchling2002-05-231-16/+12
| | | | | | | [project @ 2002-05-23 13:43:49 by akuchling] Fix some error messages Remove endianness testing Minor formatting tweaks
* [project @ akuchling-20020517204456-366350487889f006]akuchling2002-05-171-25/+27
| | | | | | | | | | | [project @ 2002-05-17 13:44:55 by akuchling] Massive C code cleanups: * Improve error messages and docstrings * Use memory allocation API correctly * Remove uses of PyArg_NoArgs * Use Python-style code formatting, and make the style more consistent There's likely still more work to be done here.
* [project @ akuchling-20020517032843-d46b1f26cebb9fb8]akuchling2002-05-161-126/+126
| | | | | [project @ 2002-05-16 20:28:43 by akuchling] Re-indent into Python C style; no other changes
* [project @ akuchling-20020501014753-baa0da8f765d1210]akuchling2002-04-301-7/+0
| | | | | [project @ 2002-04-30 18:47:53 by akuchling] Remove inline declaration from C functions
* [project @ akuchling-20020417081626-71b25d1b3eaa506a]akuchling2002-04-171-3/+1
| | | | | [project @ 2002-04-17 01:16:26 by akuchling] Fix comment
* [project @ akuchling-20020404234043-6d02bea262161e77]akuchling2002-04-041-89/+70
| | | | | [project @ 2002-04-04 15:40:12 by akuchling] Restore stream ciphers
* [project @ akuchling-20020402062257-faae089f7242b990]akuchling2002-04-011-0/+279
[project @ 2002-04-01 22:22:55 by akuchling] Add templates to src/ directory