@pytest.mark.xfail(raises=crypto.ECIESDecryptionError)
def test_en_decrypt_shared_mac_data_fail():
    (alice, bob) = (crypto.ECCx(), crypto.ECCx())
    ciphertext = alice.encrypt('test', bob.raw_pubkey, shared_mac_data='shared mac data')
    bob.decrypt(ciphertext, shared_mac_data=b'wrong')
@pytest.mark.xfail(raises=crypto.ECIESDecryptionError)
def test_en_decrypt_shared_mac_data_fail():
    (alice, bob) = (crypto.ECCx(), crypto.ECCx())
    ciphertext = alice.encrypt('test', bob.raw_pubkey, shared_mac_data='shared mac data')
    bob.decrypt(ciphertext, shared_mac_data=b'wrong')