Message335557
It's nice to see the arrival of the prod() function, see PR11359.
Just as for the built-in pow(x, y[, z]) function it would be very useful to have an optional argument z for computing integer products modulo z. Typical use case in cryptography would be:
prod((pow(x, y, z) for x, y in zip(g, s)), z)
to compute the product of all (potentially many) g[i]**s[i]'s modulo z.
And, just as with the use of pow(), the intermediate values for prod() may in general grow quickly, hence modular reduction is essential to limit time and space usage.
Maybe an interesting option to add at this stage? |
|
Date |
User |
Action |
Args |
2019-02-14 19:34:36 | lschoe | set | recipients:
+ lschoe, rhettinger |
2019-02-14 19:34:36 | lschoe | set | messageid: <1550172876.35.0.867721234262.issue35996@roundup.psfhosted.org> |
2019-02-14 19:34:36 | lschoe | link | issue35996 messages |
2019-02-14 19:34:36 | lschoe | create | |
|