Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Include padlen back to calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jq-rs committed Oct 2, 2022
1 parent 58930a8 commit bd6f575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/webworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ onmessage = function (e) {

const msglen = newmessage.length;
//padmé padding
const padsz = padme(msglen) - msglen;
const padsz = padme(msglen + padlen) - msglen;
//console.log("TX: Total msgsize " + (msglen + padsz) + " Msglen " + msglen + " padding sz " + padsz + " keysz " + keysz)
if(padsz > 0) {
newmessage += Uint8ToString(randBytesSync(padsz));
Expand Down

0 comments on commit bd6f575

Please sign in to comment.