@staticmethod
def _verify_decrypt_result(result):
    """Check for successful decryption and a trusted signature."""
    if not result.ok:
        raise Exception(result.status)
    if result.trust_level is None:
        raise Exception('Unsigned data.')
    if result.trust_level < result.TRUST_FULLY:
        raise Exception('Untrusted signature.')
