peterolson / BigInteger.js

An arbitrary length integer library for Javascript
The Unlicense
1.12k stars 187 forks source link

ModPow not calculating correct? #231

Closed wimvandenborre closed 2 years ago

wimvandenborre commented 2 years ago

Hey,

Longshot here, I'm calculation modpow with the Juce frameworks' BigInteger method and the calc differs from this library's ModPow calc, anyone has experienced promblems with modpow before? Ok forgot to mention i'm putting in hex numbers

peterolson commented 2 years ago

Can you give an example?

wimvandenborre commented 2 years ago

I managed to get it working in the mean time, here is the working code, you need to do some hex preparation first :) https://forum.juce.com/t/juce-rsa-implementation/10341/16