summaryrefslogtreecommitdiff
path: root/tests/wycheproof
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2021-02-01 16:08:48 -0600
committerGitHub <noreply@github.com>2021-02-01 17:08:48 -0500
commitba9beaa8cd2b270b6c5bcfa9bcef48e94aec76cf (patch)
tree49b5f16c0d378009cae8c203044a3571e9080d12 /tests/wycheproof
parent3d58647904ddfbf05a256e48a806c4847fc9c5df (diff)
downloadcryptography-ba9beaa8cd2b270b6c5bcfa9bcef48e94aec76cf.tar.gz
rsa type hinting (#5733)
* rsa type hinting * remove unused import * missed return type * type fixes * ignores no longer required * black gets me every time * Update src/cryptography/hazmat/backends/openssl/rsa.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Diffstat (limited to 'tests/wycheproof')
-rw-r--r--tests/wycheproof/test_rsa.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/wycheproof/test_rsa.py b/tests/wycheproof/test_rsa.py
index 4c1f1fff2..440b09291 100644
--- a/tests/wycheproof/test_rsa.py
+++ b/tests/wycheproof/test_rsa.py
@@ -103,6 +103,7 @@ def test_rsa_pkcs1v15_signature_generation(backend, wycheproof):
)
assert isinstance(key, rsa.RSAPrivateKey)
digest = _DIGESTS[wycheproof.testgroup["sha"]]
+ assert digest is not None
sig = key.sign(
binascii.unhexlify(wycheproof.testcase["msg"]),