pkcs7: fix import refactor leftover

This commit is contained in:
Shiz 2022-09-28 02:27:25 +02:00
parent d01d0aa0d5
commit 7b2cc66cb3
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def to_cms_asym_pad(pad):
return pad.name.lower()
def to_cms_asym_algo(key, pad):
if isinstance(key, rsa.RSAPublicKey):
if isinstance(key, RSAPublicKey):
algo = 'rsaes_{}'.format(to_cms_asym_pad(pad))
else:
raise ValueError('unsupported asymmetric PKCS#7 key: {}'.format(key.__class__.__name__))