summaryrefslogtreecommitdiff
path: root/tests/wycheproof
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2021-02-04 18:43:41 -0500
committerGitHub <noreply@github.com>2021-02-04 17:43:41 -0600
commit0b41cb2b61d873c1204fad4fbc994c68ac7e0dd3 (patch)
tree07eb2e539cc72738d07fccd0ec0c8b3406b0a9d6 /tests/wycheproof
parentfb3c73a0b111017bbc0559301588321c9ae9759b (diff)
downloadcryptography-0b41cb2b61d873c1204fad4fbc994c68ac7e0dd3.tar.gz
Added typing for a bunch of random stuff (#5743)
Diffstat (limited to 'tests/wycheproof')
-rw-r--r--tests/wycheproof/test_rsa.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/wycheproof/test_rsa.py b/tests/wycheproof/test_rsa.py
index 440b09291..0b0983da3 100644
--- a/tests/wycheproof/test_rsa.py
+++ b/tests/wycheproof/test_rsa.py
@@ -194,6 +194,8 @@ def test_rsa_oaep_encryption(backend, wycheproof):
assert isinstance(key, rsa.RSAPrivateKey)
digest = _DIGESTS[wycheproof.testgroup["sha"]]
mgf_digest = _DIGESTS[wycheproof.testgroup["mgfSha"]]
+ assert digest is not None
+ assert mgf_digest is not None
padding_algo = padding.OAEP(
mgf=padding.MGF1(algorithm=mgf_digest),