only thorw exception if size needs to change
only thorw exception if size needs to change

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