Ayaminn / as3crypto

Automatically exported from code.google.com/p/as3crypto
0 stars 0 forks source link

Strange code in BigInteger #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is the code line 525 correct? what does it do?
while(y.t<ys) y.(y.t++, 0);

Original issue reported on code.google.com by philippe...@gmail.com on 20 Feb 2011 at 10:40

GoogleCodeExporter commented 9 years ago
Henri has replied to me and the information is quite useful.

The maintained fork version is available, but it contains the same weird line.
https://github.com/timkurvers/as3-crypto/blob/master/src/com/hurlant/math/BigInt
eger.as

There is also the original JavaScript code which contains the correct original 
line.
http://www-cs-students.stanford.edu/~tjw/jsbn/jsbn.js

while(y.t < ys) y[y.t++] = 0;

Original comment by KoichiSe...@gmail.com on 19 Dec 2014 at 10:42