Skip to content

Commit a8315f4

Browse files
seebeesalex-chew
andauthored
Update modules/encrypt-browser/src/encrypt.ts
Co-authored-by: Alex Chew <[email protected]>
1 parent 1e5369d commit a8315f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/encrypt-browser/src/encrypt.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export async function _encrypt(
146146
* This value will NEVER be larger than the frameLength.
147147
*/
148148
const finalFrameLength =
149-
plaintextLength - Math.floor(plaintextLength / frameLength) * frameLength
149+
plaintextLength - (numberOfFrames - 1) * frameLength
150150
const bodyContent = []
151151

152152
for (

0 commit comments

Comments
 (0)