diff --git a/firebirdsql/wireprotocol.py b/firebirdsql/wireprotocol.py
index <HASH>..<HASH> 100644
--- a/firebirdsql/wireprotocol.py
+++ b/firebirdsql/wireprotocol.py
@@ -51,12 +51,14 @@ from firebirdsql.utils import *     # noqa
 from firebirdsql import srp
 from firebirdsql import tz_utils
 try:
-    from Crypto.Cipher import ARC4, ChaCha20
+    from Crypto.Cipher import ARC4
 except ImportError:
     from firebirdsql.arc4 import ARC4
+try:
+    from Crypto.Cipher import ChaCha20
+except ImportError:
     from firebirdsql.chacha20 import ChaCha20
 
-
 DEBUG = False
Import ARC4 and ChaCha<I> separately