Commit graph

1403 commits

Author SHA1 Message Date
Legrandin
c74b718aa6 Add nonce and initial_value parameters to CTR mode 2015-12-23 23:27:24 +01:00
Legrandin
6fc0c734a2 Automatic 16 byte nonce for EAX 2015-12-23 23:27:24 +01:00
Legrandin
503d9ea116 Optional nonce (11 bytes) for CCM 2015-12-23 23:27:24 +01:00
Legrandin
7ae7df57fa IV/Nonce optional for CBC/OFB/CFB/OPENPGP 2015-12-23 23:27:24 +01:00
Legrandin
e5fb0a2e2b Rebase on master (SIV) 2015-12-23 23:27:02 +01:00
Legrandin
e467994ade Update to future plans 2015-12-18 21:32:05 +01:00
Legrandin
5c25517a26 Dedicated tests for SIV 2015-12-18 21:28:21 +01:00
Legrandin
97bac28d7e Merge branch 'test_GCM' 2015-12-17 21:47:49 +01:00
Legrandin
6fa00f6302 Fix for BytesWarning 2015-12-17 21:40:53 +01:00
Legrandin
b33fd318f7 Add NIST GCM test vectors 2015-12-17 21:40:53 +01:00
Legrandin
e44d1c53f9 Add last test vectors in a NIST file 2015-12-17 07:44:28 +01:00
Legrandin
8808179a8f Added dedicated tests to GCM mode 2015-12-17 07:44:28 +01:00
Legrandin
852c867354 Fix unhexlify for Python 3.2 2015-12-17 07:44:17 +01:00
Legrandin
dd745497bc Disable string optimization for PyPy used in Travis
See PyPy issue #2207 https://bitbucket.org/pypy/pypy/issues/2207/incorrect-slicing-of-strings-in-a-tight
2015-12-16 22:22:09 +01:00
Legrandin
48734362ba Merge branch 'test_eax' 2015-12-14 22:30:08 +01:00
Legrandin
2361b724b1 Add dedicated tests for EAX mode 2015-12-14 22:29:38 +01:00
Legrandin
ec4674c0a8 Add test for message chunks to CCM 2015-12-07 20:57:25 +01:00
Legrandin
0d982eece6 PEP8 on test_CCM 2015-12-07 20:28:31 +01:00
Legrandin
ae121b7c47 Add test to validate internal cache of CMAC 2015-12-06 23:01:05 +01:00
Legrandin
6e41d35fb3 Reimplement ARC2
ARC2 is only interesting for historical reasons, and it should
not be used for new designs. The current implementation trips PyPy4
which may indicate a bug: a cleaner rewriting based on RFC2268
is the quickest solution.
2015-11-28 21:35:35 +01:00
Legrandin
e91963af09 Dedicated tests for OPENPGP mode 2015-11-27 21:27:39 +01:00
Legrandin
e6c5e8baea Merge branch 'test_ccm' 2015-11-26 21:46:22 +01:00
Legrandin
8bb5420a29 Remove CCM tests from common.py 2015-11-26 21:43:43 +01:00
Legrandin
efedb6ab33 Fix PEP8 and hexdigest/hexverify for CCM 2015-11-26 21:43:37 +01:00
Legrandin
680ce5eec0 CCM checks that declared message length matches 2015-11-26 21:19:31 +01:00
Legrandin
9cca4ffcd3 CCM checks that declared associated data length matches 2015-11-26 21:19:31 +01:00
Legrandin
5dfa01081a Add dedicated tests for CCM 2015-11-26 21:19:30 +01:00
Legrandin
760dca879f CCM cipher instance has attribute 'nonce' 2015-11-24 21:59:39 +01:00
Legrandin
9ef9c0948f Refactor CCM cipher 2015-11-24 21:57:48 +01:00
Legrandin
7b46b41db3 Merge branch 'test_ctr' 2015-11-16 00:06:03 +01:00
Legrandin
d61f253c54 Add wrap around test for CTR mode 2015-11-16 00:05:07 +01:00
Legrandin
a039ecb18d Fix unit test for counter parameter needed by CTR mode 2015-11-16 00:05:07 +01:00
Legrandin
63af8cdbdf Added RFC3686 test vectors for CTR mode 2015-11-16 00:05:07 +01:00
Legrandin
4ca9d76d92 Make CCM work with the new CTR 2015-11-16 00:05:07 +01:00
Legrandin
bfce4eab16 Update to Changelog (CTR mode) 2015-11-16 00:05:07 +01:00
Legrandin
e7e9458da2 Add dedicated tests 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
e97c82c9b3 Clarify documentation for Crypto.Util.Counter 2015-11-16 00:05:07 +01:00
Legrandin
ac3367a4e6 CTR mode should ignore extra positional arguments 2015-11-16 00:05:07 +01:00
Legrandin
6fede775c3 Rename unit test for unknown parameters 2015-11-16 00:05:02 +01:00
Legrandin
bcd8517a0c CTR mode was modifying counter parameter 2015-11-16 00:00:22 +01:00
Legrandin
74ba21aeae Reduce code duplication between CBC and CFB 2015-11-14 22:21:45 +01:00
Legrandin
2eea063f3d Update documentation for CTR mode 2015-11-14 22:08:33 +01:00
Legrandin
988f4cc17f Reduce code duplication between CBC and OFB 2015-11-14 22:08:33 +01:00
Legrandin
68969ee3da Add dedicated tests for OCB 2015-11-13 22:52:52 +01:00
Hannes van Niekerk
9c9afa557d Bug fixes on RsaKey class
Remove reference to ".size()" in RsaKey.__repr__ method and return key
size with alternative implementation.
Fix "hasattr" check in RsaKey.__repr__ method.
Fix broken "in" expressions.

Closes #5
2015-11-13 22:05:14 +01:00
Legrandin
e0628f9694 Enable assertions in all C modules 2015-11-13 15:25:17 -05:00
Legrandin
ce2bd66912 Fix assertion on CFB C code 2015-11-13 06:21:24 -05:00
Legrandin
9de86c26b2 Remove CBC and CFB from common.py 2015-11-12 16:25:23 -05:00