summaryrefslogtreecommitdiff
path: root/src/Blowfish.c
Commit message (Collapse)AuthorAgeFilesLines
* Add block_finalize to clean up block_state from ALGdeallocSebastian Ramacher2013-10-281-0/+4
| | | | | | This is the counterpart to block_init which is called from ALGnew. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Add pycrypto_common.h and clean up a bunch of miscellaneous includes & typedefsDwayne Litzenberger2013-04-211-13/+2
|
* 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.
* 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.
* Added documentation for BlowfishLegrandin2012-05-111-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.
* Release the global interpreter lock during encryption, decryption, and hashing.Dwayne C. Litzenberger2009-10-121-8/+3
| | | | | | | 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.
* Blowfish: Rename decrypt() to inline_decrypt() to match previous commitDwayne C. Litzenberger2009-04-251-2/+2
|
* Blowfish: Fix conflicting declaration for "encrypt" on Mac OS XKouki Hashimoto2009-04-251-7/+7
| | | | | | | Apparently OS X declares an "encrypt" function in its unistd.h. Patch posted to Lauchpad by Kouki Hashimoto. See https://bugs.launchpad.net/pycrypto/+bug/361058
* Reduce symbol table pollution by declaring most things "static".Dwayne C. Litzenberger2009-03-041-3/+3
| | | | Handy command: nm -g --extern-only `find . -name \*.so`
* Add new Blowfish implementationDwayne C. Litzenberger2009-03-011-0/+243
| | | | | I wrote this implementation last year without looking at any other implementation.
* Remove Blowfish, DES, DES3, IDEA, RC5, and XOR modulesDwayne C. Litzenberger2009-03-011-499/+0
| | | | | | | | | | | | | | | | | | | | | | | Because: - Blowfish: Uses the original (ambiguous) PyCrypto license. The documentation says "the Blowfish algorithm has been placed in the public domain and can be used freely", but this seems to be referring to patents, not copyright. - DES: The file says "Copyright (C) 1993 Eric Young", and appears to have been taken from SSLeay. The license of SSLeay is not GPL-compatible, since it has an advertising clause. - DES3: Same reason as for the DES module. - IDEA: Patent-encumbered. - RC5: Patent-encumbered. - XOR: Insecure as a stream cipher, and it silently truncates "keys" to 32 bytes. The strxor module is a better replacement if you want to do a bitwise exclusive-or between strings.
* [project @ akuchling-20020517033412-ac0b409d6970cddc]akuchling2002-05-161-374/+374
| | | | | [project @ 2002-05-16 20:34:11 by akuchling] Re-indent into Python C style; no other changes
* [project @ akuchling-20020516233050-85ce258c1e144af3]akuchling2002-05-161-0/+499
[project @ 2002-05-16 16:30:50 by akuchling] Move C implementation files into src/