'Encrypt data with ECIES method using the public key of the recipient.'

@staticmethod
def encrypt(data, pubkey, ephemcurve=None, ciphername='aes-256-cbc'):

    (curve, pubkey_x, pubkey_y, i) = ECC._decode_pubkey(pubkey)
    return ECC.raw_encrypt(data, pubkey_x, pubkey_y, curve=curve, ephemcurve=ephemcurve, ciphername=ciphername)
