def is_crypto_code(dx):
    """
        Crypto code is present ?
        :param dx : the analysis virtual machine
        :type dx: a :class:`VMAnalysis` object
        :rtype: boolean
    """
    if dx.get_tainted_packages().search_methods("Ljavax/crypto/.",
                                                ".",
                                                "."):
        return True

    if dx.get_tainted_packages().search_methods("Ljava/security/spec/.",
                                                ".",
                                                "."):
        return True

    return False