summaryrefslogtreecommitdiff
path: root/src/DES.c
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade libtomcrypt 1.16 -> 1.17 (LP#1264130)Dwayne Litzenberger2014-06-221-2/+0
| | | | | | | | This should fix a FreeBSD build issue: https://bugs.launchpad.net/pycrypto/+bug/1264130 Thanks to Richard Mitchell <richard.j.mitchell@gmail.com> for suggesting how to fix this.
* DES3: Move "Two-key 3DES" support into DES.c instead of customizing ↵Dwayne Litzenberger2014-06-221-1/+17
| | | | tomcrypt_des.c
* Merge pull request #62 (Fixes AESNI alignment bug)Dwayne Litzenberger2014-02-221-0/+4
|\
| * 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>
* | Fix typo in error stringDwayne Litzenberger2014-02-221-1/+1
| |
* | Fix exception string for incorrect key length (DES)Legrandin2014-02-211-0/+4
|/
* Add pycrypto_common.h and clean up a bunch of miscellaneous includes & typedefsDwayne Litzenberger2013-04-211-1/+1
|
* Fix compiler warning about "_POSIX_C_SOURCE" being redefined in string.hDwayne Litzenberger2013-02-171-1/+2
| | | | The solution is to include Python.h before string.h is included.
* Added documentation for Triple DES.Legrandin2012-05-101-1/+1
|
* Added documentation for AES and DES.Legrandin2012-05-101-1/+1
| | | | | | | A new module (blockalgo) has been added. It contains a class (BlockAlgo) all ciphers derive from. The only purpose of such base class is to centralize all general documentation applicable to all block ciphers (e.g. modes) into a single file.
* Release the global interpreter lock during encryption, decryption, and hashing.Dwayne C. Litzenberger2009-10-121-6/+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.
* Clean up remaining symbol table pollution (DES and DES3 modules)Dwayne C. Litzenberger2009-03-041-36/+0
|
* DES: Rename des.c to tomcrypt_des.c to avoid confusion with DES.c on ↵Dwayne C. Litzenberger2009-03-011-1/+1
| | | | | | | case-insensitive filesystems I don't know if this would have caused problems on Windows, but I'm doing this anyway to avoid any potential issues.
* DES: Add new DES.c and DES3.c modules that use libtomcryptDwayne C. Litzenberger2009-03-011-0/+148
|
* Remove Blowfish, DES, DES3, IDEA, RC5, and XOR modulesDwayne C. Litzenberger2009-03-011-665/+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-302/+302
| | | | | [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/+665
[project @ 2002-05-16 16:30:50 by akuchling] Move C implementation files into src/