def load_private_key(data):
    """
    Loads a PEM-encoded private key.
    """
    key = load_pem_private_key(data, password=None, backend=default_backend())
    if not isinstance(key, (RSAPrivateKey, EllipticCurvePrivateKey)):
        raise ValueError("Key is not a private RSA or EC key.")
    elif isinstance(key, RSAPrivateKey) and 2048 < key.key_size:
        raise ValueError("The key must be 2048 bits or longer.")

    return key
dataset/ETHPy150Open veeti/manuale/manuale/crypto.py/load_private_key/swapped operands of `<`