pkcs7: fix mode generation
This commit is contained in:
parent
992333e91b
commit
d3e71c2673
2
pkcs7.py
2
pkcs7.py
|
@ -72,7 +72,7 @@ def to_cms_sym_algo(algo, mode):
|
|||
desc = {
|
||||
'algorithm': '{}{}_{}'.format(algo.__class__.__name__.lower(), algo.key_size, to_cms_sym_mode(mode)),
|
||||
}
|
||||
if isinstance(mode, CBC, OFB, CFB):
|
||||
if isinstance(mode, (CBC, OFB, CFB)):
|
||||
desc['parameter'] = mode.initialization_vector
|
||||
return desc
|
||||
|
||||
|
|
Loading…
Reference in New Issue