From ff69f8509154a6bcb34c219459a3acc17774e18e Mon Sep 17 00:00:00 2001 From: justin-h-loi Date: Tue, 15 Aug 2023 16:23:23 -0400 Subject: [PATCH] pep8 fixes --- kmip/core/config_helper.py | 1 + kmip/services/server/crypto/engine.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kmip/core/config_helper.py b/kmip/core/config_helper.py index a816dcd..24c2353 100644 --- a/kmip/core/config_helper.py +++ b/kmip/core/config_helper.py @@ -30,6 +30,7 @@ CONFIG_FILE = [ if os.environ.get("UNITTEST"): CONFIG_FILE = [] + class ConfigHelper(object): NONE_VALUE = 'None' DEFAULT_HOST = "127.0.0.1" diff --git a/kmip/services/server/crypto/engine.py b/kmip/services/server/crypto/engine.py index 1552770..0821826 100644 --- a/kmip/services/server/crypto/engine.py +++ b/kmip/services/server/crypto/engine.py @@ -269,7 +269,8 @@ class CryptographyEngine(api.CryptographicEngine): ) cipher_algorithm = self._symmetric_key_algorithms.get(algorithm) try: - # ARC4 and other non-block cipher algorithms will raise TypeError exceptions + # ARC4 and other non-block cipher algorithms will + # raise TypeError exceptions c = cmac.CMAC(cipher_algorithm(key), backend=default_backend()) c.update(data) mac_data = c.finalize()