diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2021-02-04 18:43:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-04 17:43:41 -0600 |
| commit | 0b41cb2b61d873c1204fad4fbc994c68ac7e0dd3 (patch) | |
| tree | 07eb2e539cc72738d07fccd0ec0c8b3406b0a9d6 /tests/wycheproof | |
| parent | fb3c73a0b111017bbc0559301588321c9ae9759b (diff) | |
| download | cryptography-0b41cb2b61d873c1204fad4fbc994c68ac7e0dd3.tar.gz | |
Added typing for a bunch of random stuff (#5743)
Diffstat (limited to 'tests/wycheproof')
| -rw-r--r-- | tests/wycheproof/test_rsa.py | 2 |
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), |
