"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "barbican/plugin/crypto/simple_crypto.py" between
barbican-11.0.0.tar.gz and barbican-12.0.0.tar.gz

About: OpenStack Barbican is the OpenStack Key Manager service. It provides secure storage, provisioning and management of secret data.
The "Wallaby" series (latest release).

simple_crypto.py  (barbican-11.0.0):simple_crypto.py  (barbican-12.0.0)
skipping to change at line 189 skipping to change at line 189
passphrase), passphrase),
kek_meta_dto, kek_meta_dto,
project_id) project_id)
return private_dto, public_dto, passphrase_dto return private_dto, public_dto, passphrase_dto
def supports(self, type_enum, algorithm=None, bit_length=None, def supports(self, type_enum, algorithm=None, bit_length=None,
mode=None): mode=None):
if type_enum == c.PluginSupportTypes.ENCRYPT_DECRYPT: if type_enum == c.PluginSupportTypes.ENCRYPT_DECRYPT:
return True return True
elif type_enum == c.PluginSupportTypes.SYMMETRIC_KEY_GENERATION:
if type_enum == c.PluginSupportTypes.SYMMETRIC_KEY_GENERATION:
return self._is_algorithm_supported(algorithm, return self._is_algorithm_supported(algorithm,
bit_length, bit_length,
mode) mode)
elif type_enum == c.PluginSupportTypes.ASYMMETRIC_KEY_GENERATION: elif type_enum == c.PluginSupportTypes.ASYMMETRIC_KEY_GENERATION:
return self._is_algorithm_supported(algorithm, return self._is_algorithm_supported(algorithm,
bit_length, bit_length,
mode) mode)
else: else:
return False return False
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)