docs: def isCryptographyAdvanced():
      """
      Check if the cryptography library is present, and if it supports X25519,
      ChaCha20Poly1305 and such (v2.0 or later).
      """
      try:
          from cryptography.hazmat.primitives.asymmetric.x25519 import X25519PrivateKey  # noqa: E501
          X25519PrivateKey.generate()
      except Exception:
          return False
      else:
          return True