diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index f425fad7..fc1d46cb 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -27,7 +27,10 @@ import socket import struct import threading -from Crypto.Cipher import AES +try: + from Cryptodome.Cipher import AES +except ImportError: + from Crypto.Cipher import AES import pyghmi.exceptions as exc from pyghmi.ipmi.private import constants