pep8 fixes

This commit is contained in:
justin-h-loi 2023-08-15 16:23:23 -04:00 committed by arp102
parent 084fbcdb61
commit ff69f85091
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -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()