Helder Eijs
cd7f0128b6
Make code base suitable for Python 2 and 3 - stop using 2to3
2018-11-04 15:04:23 +01:00
Helder Eijs
2905b4aec3
Better cross-references for ciphers
2018-04-03 22:24:17 +02:00
Helder Eijs
fc8e6c5eb9
Update to API docs
2018-04-03 21:33:15 +02:00
Helder Eijs
3b317be2a6
Add support for bytearray's in ciphers
...
[skip ci]
2018-03-06 08:25:42 +01:00
Helder Eijs
dbc7c7bb3d
DES3 API
2017-08-01 23:08:09 +02:00
Helder Eijs
fd743df053
Add DES and DES3 to new API
2017-07-31 23:56:54 +02:00
Legrandin
8857aa9887
Reference from cipher object to cipher modes
2016-02-01 22:18:47 +01:00
Legrandin
edf6ed5886
adjust_key_parity also check weak keys
2015-12-26 13:27:48 +01:00
Legrandin
abf4a007a7
DES3 does not accept weak (Single DES) keys
2015-12-25 09:08:22 +01:00
Legrandin
3fb362b5cd
Update to docs and test cases
2015-12-23 23:27:24 +01:00
Legrandin
c74b718aa6
Add nonce and initial_value parameters to CTR mode
2015-12-23 23:27:24 +01:00
Legrandin
2eea063f3d
Update documentation for CTR mode
2015-11-14 22:08:33 +01:00
Legrandin
76e2482a16
CFB does not accept segment_size=0
2015-11-12 16:19:56 -05:00
Legrandin
72aff29a65
Update to API documentation.
2015-03-11 11:30:16 -04:00
Legrandin
0b76cd2168
Ensure that all data passed to C backend is byte strings
2015-02-10 22:29:40 +01:00
Legrandin
11a6d1dfa4
Flag explicitly certain arguments as of size_t type
2015-02-10 16:45:25 +01:00
Legrandin
e934e4135d
Symmetric ciphers use cffi too (when available).
2015-01-22 09:35:44 +01:00
Legrandin
cb844d8292
More reliable way to infer module extension
2015-01-05 23:06:22 +01:00
Legrandin
32b0c53ac6
Update DES and DES3
2015-01-05 23:06:21 +01:00
Legrandin
e9adec93c7
Every cipher instance is a mode-specific type
2014-12-10 21:40:49 +01:00
Legrandin
350935d855
Factor out EAX mode into separate module
2014-12-08 22:15:50 +01:00
Legrandin
774d28d441
Factor out OpenPGP cipher mode in separate module
2014-12-08 21:53:14 +01:00
Legrandin
465d0391ac
ECB is not the default mode for a new cipher.
...
The expression AES.new(key) used to be equivalent
to AES.new(key, AES.MODE_ECB). The same applies to
any other algorithm beside AES.
Since the ECB mode is not a secure default,
the expression AES.new(key) will now raise an exception.
NOTE: this change sets breaks compatibility with PyCrypto
2014-06-16 20:36:36 +02:00
Legrandin
8bdbdb8168
Add EAX authenticated encryption mode
...
[dlitz@dlitz.net: Included changes from the following commits from the author's pull request:]
- [9c13f9c] Rename 'IV' parameter to 'nonce' for AEAD modes.
- [ca460a7] Made blockalgo.py more PEP-8 compliant; The second parameter
of the _GHASH constructor is now the length of the block
(block_size) and not the full module.
[dlitz@dlitz.net: Fixed unresolved conflict in lib/Crypto/Cipher/blockalgo.py]
2013-10-20 13:30:21 -07:00
Legrandin
8766da37a2
whitespace changes (pre-AEAD)
...
[dlitz@dlitz.net: Whitespace changes extracted from the author's pull request:]
- [9c13f9c] Rename 'IV' parameter to 'nonce' for AEAD modes.
- [4ec64d8] Removed last references to ApiUsageError
- [ee46922] Removed most 'import *' statements
2013-10-20 13:30:21 -07:00
Legrandin
cb749c0a52
Examples for DES and DES3 were inverted
2012-06-11 10:08:25 +02:00
Stefano Rivera
cbc13b3f42
Update docstring. IVs are no longer optional
2012-05-27 17:41:46 +01:00
Legrandin
62f2c4154c
Added OpenPGP mode
2012-05-17 22:17:38 +02:00
Legrandin
c3aadee360
Added example for all symmetric ciphers
2012-05-14 23:50:40 +02:00
Legrandin
d0863eabfb
Minor fixes for documentation of ciphers
...
Fixed key lengths described with xrange()
Removed unnecessary imports.
Removed documentation for compiled modules starting with '_'.
2012-05-14 19:03:39 +02:00
Legrandin
4ce6b8d7f1
Fixes to make test suite pass for Python 2.1 and Python 3
2012-05-11 22:57:49 +02:00
Legrandin
5faa23c67a
TDES unit tests got broken. Fixed them again.
2012-05-10 23:14:19 +02:00
Legrandin
c47425619c
Added documentation for Triple DES.
2012-05-10 23:01:30 +02:00