-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Node encryption of ArrayBuffer plaintext
convert plaintext to Buffer before encrypting in Node Buffer.concat doesn’t handle ArrayBuffer (TODO explain how an ArrayBuffer might find its way here, using the same logic as how we ended up at the InputPlaintext type) without fix, this test fails with > TypeError: Cannot read properties of undefined (reading 'length') TODO understand what was going on with encryption causing mutation and whether that’s something that I did? Resolves #TODO
- Loading branch information
1 parent
54a9fc5
commit fa9fd2e
Showing
2 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters