Skip to content

Commit

Permalink
#314 cbc padding is only 128 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 2, 2024
1 parent 7dff29a commit c24b97c
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 @@ -557,7 +557,7 @@ class XpraProtocol {
const mode = caps["mode"] || DEFAULT_MODE;
let block_size = 0;
if (mode == "CBC") {
block_size = 32;
block_size = 16;
} else if (!["GCM", "CTR"].includes(mode)) {
throw `unsupported AES mode '${mode}'`;
}
Expand Down

0 comments on commit c24b97c

Please sign in to comment.