Skip to content

There may be a bug. #1

@AdrianNostromo

Description

@AdrianNostromo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions