Haven’t looked closely at the implementation of either one, but https://github.com/ionspin/kotlin-multiplatform-bignum is trying to do something similar. Might be a good place to look either for inspiration or to combine efforts.
k
Kavan
12/04/2019, 7:57 PM
Damn good. He implemented lot from bignumber. But thing I needed powMod still not implemented in it.
a
Andy Gibel
12/04/2019, 10:01 PM
just make sure to publish your Gradle metadata with iosX64 🙂 . He did not
k
Kavan
12/04/2019, 11:12 PM
powMod is really really complex.. in openssl it uses multiple algorithms for odd and even modulo. And those more complex it self.
Kavan
12/04/2019, 11:12 PM
I might give up here
u
Ugi
01/06/2020, 8:54 PM
Hey @Kavan if you are referring to exponentiation in modular integers