def test_en_decrypt_shared_mac_data():
    (alice, bob) = (crypto.ECCx(), crypto.ECCx())
    ciphertext = alice.encrypt('test', bob.raw_pubkey, shared_mac_data='shared mac data')
    assert (bob.decrypt(ciphertext, shared_mac_data=b'shared mac data') == b'test')
def test_en_decrypt_shared_mac_data():
    (alice, bob) = (crypto.ECCx(), crypto.ECCx())
    ciphertext = alice.encrypt('test', bob.raw_pubkey, shared_mac_data='shared mac data')
    assert (bob.decrypt(ciphertext, shared_mac_data=b'shared mac data') == b'test')