aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-06-27 22:29:38 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-06-27 21:29:38 -0500
commit17097bf9577e4b9ef0989202918a74ebb46fdd69 (patch)
tree156bea7ac7bbd7ef6e503789180b131714f220f4 /tests
parentfa8ed29a9769ec67193d8f80208c20fecf4d39fc (diff)
downloadcryptography-17097bf9577e4b9ef0989202918a74ebb46fdd69.tar.gz
cryptography-17097bf9577e4b9ef0989202918a74ebb46fdd69.tar.bz2
cryptography-17097bf9577e4b9ef0989202918a74ebb46fdd69.zip
Fixed #3008 -- expose calculate max pss salt length (#3014)
* Fixed #3008 -- expose calculate max pss salt length * Fixed a few mistakes in the docs * move all the code around * oops * write a unit test * versionadded + changelog
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_rsa.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 9f3008e3..e4e43780 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -1081,6 +1081,10 @@ class TestRSAPKCS1Verification(object):
class TestPSS(object):
+ def test_calculate_max_pss_salt_length(self):
+ with pytest.raises(TypeError):
+ padding.calculate_max_pss_salt_length(object(), hashes.SHA256())
+
def test_invalid_salt_length_not_integer(self):
with pytest.raises(TypeError):
padding.PSS(