removed code duplication for ea.encrypt
removed code duplication for ea.encrypt

shaih/HElib,shaih/HElib,berserkr/HElib,AlexanderViand/HElib,AlexanderViand/HElib,berserkr/HElib,berserkr/HElib,AlexanderViand/HElib,shaih/HElib