Edit: it works now! Uses an implementation similar to Uint::gcd as added in #617
Tests are currently failing due to the handling of zero as one of the values.
I'm thinking the return value of CtOption is largely a vestige of when even numbers weren't supported, and we can change it to be infallible now, similar to num-bigint.
I'm uncertain why we aren't seeing similar failures in the Uint::gcd proptests as I expect it to have a similar issue.
Edit: it works now! Uses an implementation similar to
Uint::gcd
as added in #617Tests are currently failing due to the handling of zero as one of the values.I'm thinking the return value ofCtOption
is largely a vestige of when even numbers weren't supported, and we can change it to be infallible now, similar tonum-bigint
.I'm uncertain why we aren't seeing similar failures in theUint::gcd
proptests as I expect it to have a similar issue.