diff --git a/barbican/plugin/crypto/simple_crypto.py b/barbican/plugin/crypto/simple_crypto.py index e0c9e3a28..b81eddebb 100644 --- a/barbican/plugin/crypto/simple_crypto.py +++ b/barbican/plugin/crypto/simple_crypto.py @@ -189,8 +189,7 @@ class SimpleCryptoPlugin(c.CryptoPluginBase): mode=None): if type_enum == c.PluginSupportTypes.ENCRYPT_DECRYPT: return True - - if type_enum == c.PluginSupportTypes.SYMMETRIC_KEY_GENERATION: + elif type_enum == c.PluginSupportTypes.SYMMETRIC_KEY_GENERATION: return self._is_algorithm_supported(algorithm, bit_length, mode)