What I had in mind for the upper half, is something like this:

  gmp_uint_least32_t k[4];
  ...
  k[0] = high_bit ? 0x4BEDAF6D : 0x5443092C;
  k[1] = high_bit ? 0x674DD5FB : 0xA67C9FE2;
  k[2] = high_bit ? 0xB79D42BC : 0x31CC686A;
  k[3] = high_bit ? 0x94C371EA : 0xC41175D6;

Marco Bodrato wrote, On 2017-03-03 08:11:

> I vote for decryption in the main library, I like use of sum to detect the
> end of the loop :-)

Fine with me.
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to