Fix mask type in mp_cond_copy to be at least 16 bits to handle 'used' being larger than 8-bit but mp_digit being 8-bit. When large numbers are used with 8-bit words, mul/sqr partial sums will overflow a word. Fix implementations to handle this.
Fix mask type in mp_cond_copy to be at least 16 bits to handle 'used' being larger than 8-bit but mp_digit being 8-bit. When large numbers are used with 8-bit words, mul/sqr partial sums will overflow a word. Fix implementations to handle this.