pkcs7: fix pad name generation

This commit is contained in:
Shiz 2022-09-28 02:29:53 +02:00
parent 7b2cc66cb3
commit 7a98bf0d5e
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ def from_cms_hash_algo(desc):
}[algo]
def to_cms_asym_pad(pad):
return pad.name.lower()
return {
'EMSA-PKCS1-v1_5': 'pkcs1v15',
}[pad.name]
def to_cms_asym_algo(key, pad):
if isinstance(key, RSAPublicKey):