Helder Eijs
39626a5b01
Move functions to get buffer information into Util._raw_api
2018-11-04 22:05:09 +01:00
Helder Eijs
49ccc3a0c3
Fix to docs
2018-10-27 22:08:19 +02:00
Helder Eijs
7033f34e54
Add output parameter for CBC mode
2018-10-27 21:26:05 +02:00
Helder Eijs
f327d4fc01
Dedicated exception in case of incorrect IV length
2018-07-05 15:37:18 +02:00
Helder Eijs
fc8e6c5eb9
Update to API docs
2018-04-03 21:33:15 +02:00
Helder Eijs
ec4084eaaf
Support for memoryviews in CCM
2018-04-02 20:59:03 +02:00
Helder Eijs
1a56f87afe
Support for memoryview in CBC/OFB/CFB mode
2018-04-02 20:59:03 +02:00
Antoine Cœur
2194933f2e
typo
2018-03-18 23:40:05 +08:00
Helder Eijs
62ce7a97c1
Better name for type conversion helper
2018-03-06 13:48:00 +01:00
Helder Eijs
c1112c5175
Make it work in Python 2.6; update to docs
2018-03-06 11:56:19 +01:00
Helder Eijs
3b317be2a6
Add support for bytearray's in ciphers
...
[skip ci]
2018-03-06 08:25:42 +01:00
Helder Eijs
a0efba54f8
Human-friendly error messages for unaligned decryption with ECB and CBC
2018-01-26 23:21:44 +01:00
Legrandin
6e80fea9d5
Bump version and updates to documentation
2016-02-07 13:01:09 +01:00
Legrandin
b6eb4ba7f0
Hide initializers for cipher mode objects
2016-02-01 22:05:02 +01:00
Legrandin
7ae7df57fa
IV/Nonce optional for CBC/OFB/CFB/OPENPGP
2015-12-23 23:27:24 +01:00
Legrandin
eefc7ac34c
Fix to empty IV becoming None
2015-11-08 22:37:43 +01:00
Legrandin
7099824e2c
Added dedicated tests for CBC
...
In the process, the following changes are done to CBC code:
- `new` detects when a spurious extra positional parameter is passed
- `new` accepts 'iv' or 'IV' keywords, but not both
- the cipher object has both 'iv' and 'IV' attributes, for convenience
- `encrypt` and `decrypt` cannot be intermixed
- some ValueError exceptions have been converted to TypeError when
they refer to erroneuous API usage
2015-11-08 22:05:58 +01: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
08baea4cb4
Break up block_template.c (AES only)
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