Hello,
I am using this and tested it against a c++ version and it doesn't give the same result.
Comparing to the c++ version and the wikipedia c++ example code, there is a line that is different.
In the file salsa20.js, the following line seems wrong.
for (i=0; i<rounds; i++){
On the wikipedia version it is:
// 10 loops × 2 rounds/loop = 20 rounds
for (i=0; i<rounds; i+=2) {
Ps. Thanks for taking the time to write this.
Hello,
I am using this and tested it against a c++ version and it doesn't give the same result.
Comparing to the c++ version and the wikipedia c++ example code, there is a line that is different.
In the file salsa20.js, the following line seems wrong.
for (i=0; i<rounds; i++){On the wikipedia version it is:
Ps. Thanks for taking the time to write this.