Skip to content

Commit

Permalink
#314 better key stretch iterations range
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 1, 2024
1 parent 7d13482 commit 4b44b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5/js/Protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ class XpraProtocol {
}

const iterations = caps["key_stretch_iterations"];
if (iterations <= 0 || iterations >= 10000) {
if (iterations < 1000 || iterations > 1000000) {
throw `invalid number of iterations: ${iterations}`;
}

Expand Down

0 comments on commit 4b44b1e

Please sign in to comment.