Commit graph

341 commits

Author SHA1 Message Date
Paul Kehrer
0abdf870fa add test marks to fernet so backends without cipher (or AES/CBC) will skip 2014-01-09 22:21:14 -06:00
Paul Kehrer
5e612d0ac0 add is_available() to CommonCrypto binding, use it for skipif 2014-01-09 11:53:48 -06:00
Paul Kehrer
5001c3f747 cover a missing branch in the commoncrypto bindings 2014-01-09 11:53:48 -06:00
Paul Kehrer
cc4a42dbc5 Add initial CommonCrypto bindings (no backend yet) 2014-01-09 11:53:48 -06:00
Alex Gaynor
e9b2fdd257 Merge pull request #415 from reaperhulk/remove-cast5-ecb-for-now
remove CAST5 for first release
2014-01-07 16:24:04 -08:00
Paul Kehrer
0f72bdadc4 remove CAST5 for first release 2014-01-07 17:28:31 -06:00
Alex Gaynor
e222010029 Fixed #408 -- cleanup how is_available works 2014-01-07 15:16:35 -08:00
David Reid
bf41d5ca7e Merge pull request #203 from alex/fernet
[WIP][POC] Implement Fernet
2014-01-06 13:06:11 -08:00
Paul Kehrer
02ed961c96 missing # 2014-01-04 19:36:39 -06:00
Paul Kehrer
fefe3c2243 make the dummy_initializer fail with an actual verify call 2014-01-04 18:43:19 -06:00
Paul Kehrer
2dd21fec48 remove unneeded mark now that is_available is there 2014-01-04 18:13:40 -06:00
Paul Kehrer
3ae13fc662 fix py3 2014-01-04 17:43:35 -06:00
Paul Kehrer
108605b018 add commoncrypto mark to skip on non-OS X platforms 2014-01-04 17:21:29 -06:00
Paul Kehrer
24684cabab instantiate hash objects for hmac checks too 2014-01-04 11:51:40 -06:00
Paul Kehrer
8d3857221b Instantiate our hash objects used for supported checks 2014-01-04 11:47:19 -06:00
David Reid
24c9a8d153 Merge pull request #272 from alex/validate-iv
Validate the IV/nonce length for a given algorithm.
2014-01-03 16:02:51 -08:00
Paul Kehrer
f03334e25c backend support check now lists which backend caused the skip 2014-01-03 11:39:19 -06:00
Alex Gaynor
267dbc946b Merge branch 'master' into validate-iv
Conflicts:
	cryptography/hazmat/primitives/ciphers/modes.py
2014-01-02 10:56:08 -08:00
Alex Gaynor
5bae063ff2 Merge branch 'master' into fernet
Conflicts:
	docs/index.rst
2014-01-02 10:55:36 -08:00
Alex Gaynor
69edb3b741 Merge branch 'master' into privatize-me-captain
Conflicts:
	cryptography/hazmat/backends/openssl/backend.py
2014-01-01 20:00:29 -08:00
Paul Kehrer
fa3d5aacd9 Merge pull request #386 from alex/move-gcm-tag-validation
Move GCM tag size/value validation farther forward
2014-01-01 19:40:31 -08:00
Alex Gaynor
604afb5d55 Make lib and ffi be private on backend
Because now they are public on a binding instance if you need them!
2014-01-01 16:18:53 -08:00
Alex Stapleton
c368ac2edf Split OpenSSL binding 2014-01-01 23:48:39 +00:00
Alex Gaynor
516b1adadd Fixed test for earlier exceptino 2014-01-01 12:28:37 -08:00
Alex Gaynor
2a160d6a15 Merge branch 'master' into validate-iv
Conflicts:
	tests/hazmat/backends/test_openssl.py
	tests/hazmat/primitives/test_block.py
2014-01-01 08:11:13 -08:00
Alex Gaynor
937451ee27 Merge branch 'master' into fernet 2013-12-30 21:07:00 -08:00
Alex Gaynor
7ede6a4b80 Merge pull request #353 from reaperhulk/supported-mark
Add mark that allows us to do skip tests on backends via decorators
2013-12-27 16:16:41 -08:00
Paul Kehrer
b078d8e1f4 re-add some removed generators to simplify patch 2013-12-27 16:33:14 -06:00
Paul Kehrer
ec49550b1f change typeerror to valueerror 2013-12-27 15:51:40 -06:00
Alex Gaynor
4b31af7407 Merge branch 'master' into fernet 2013-12-27 08:22:07 -08:00
Julian Krause
b808f8cc91 Remove verify from Hash. 2013-12-26 21:47:39 -08:00
Paul Kehrer
783479c618 refactor all tests to use mark instead of generator skips 2013-12-26 21:08:45 -06:00
Paul Kehrer
60fc8da5aa rename the method to be less horribly named 2013-12-26 20:19:34 -06:00
Paul Kehrer
5a8fdf82f3 add mark that allows us to do skip tests on backends via decorators 2013-12-26 20:13:45 -06:00
Julian Krause
e62760af74 Merge branch 'master' of https://github.com/pyca/cryptography into verify
Conflicts:
	tests/hazmat/primitives/test_hashes.py
	tests/hazmat/primitives/test_hmac.py
2013-12-25 12:58:40 -08:00
Paul Kehrer
0865a8b810 Merge pull request #347 from alex/better-error-emssage
Better error emssage
2013-12-24 22:43:46 -08:00
Alex Gaynor
2b3f942712 Move stuff around and coverage 2013-12-24 21:55:24 -08:00
Paul Kehrer
8d85b058d2 correct import style 2013-12-24 23:51:36 -06:00
Alex Gaynor
6198da1fcc Update test 2013-12-24 21:03:43 -08:00
Alex Gaynor
5a09c6e954 Include teh name of the backend in the error message 2013-12-24 21:03:23 -08:00
Paul Kehrer
4f2b1031c3 add all the markers to the tests 2013-12-24 22:36:28 -06:00
Paul Kehrer
0cbcfa67fc whoops, python 2.6 compatible format string 2013-12-24 22:29:12 -06:00
Paul Kehrer
7e4bc6d877 add test marks for various backend functionality 2013-12-24 22:23:53 -06:00
Alex Gaynor
2a36dd1b9f Cover a missed branch 2013-12-24 13:44:45 -08:00
Paul Kehrer
c80c68da79 add more skip check lambdas 2013-12-23 19:38:08 -06:00
Paul Kehrer
90ae866e0a add hmac_supported method to backend.
Previously we were implicitly assuming that if a hash was supported then
its hmac equivalent was as well.
2013-12-23 17:21:00 -06:00
Alex Gaynor
d5c351e217 Merge pull request #325 from public/unsupported-cipher-messages
UnsupportedAlgorithm error messages for Ciphers
2013-12-22 07:45:32 -08:00
Alex Stapleton
35cb3659bc UnsupportedAlgorithm error messages for Ciphers 2013-12-22 10:48:01 +00:00
Alex Gaynor
8eda240d0e Merge pull request #327 from reaperhulk/gcm-lower-limit-tag
Restrict GCM tag length to 4+ bytes
2013-12-21 17:29:02 -08:00
Paul Kehrer
f7b4ede584 restrict gcm tags to a minimum of 4 bytes in length 2013-12-21 17:25:19 -06:00