Commit graph

17 commits

Author SHA1 Message Date
Helder Eijs
3b317be2a6 Add support for bytearray's in ciphers
[skip ci]
2018-03-06 08:25:42 +01:00
Jack Ward
874da843dd Fix CTR block size error message
The format string is interpreting % bytes as %b instead of
the proper %d, resulting in an ugly error message:

ValueError: unsupported format character 'b' (0x62) at index 29
2018-02-20 13:37:22 +01:00
Helder Eijs
97614ab9ad IV for CTR mode can be a byte string 2018-02-17 00:13:02 +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
c74b718aa6 Add nonce and initial_value parameters to CTR mode 2015-12-23 23:27:24 +01:00
Legrandin
d61f253c54 Add wrap around test for CTR mode 2015-11-16 00:05:07 +01:00
Legrandin
cede736264 Better error for incorrect counter block length 2015-11-16 00:05:07 +01:00
Legrandin
7d99a591b2 For CTR mode, encrypt and decrypt cannot intermix 2015-11-16 00:05:07 +01:00
Legrandin
bcd8517a0c CTR mode was modifying counter parameter 2015-11-16 00:00:22 +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