Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crypto/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function encryptStream (handshake: IHandshake): Transform<Uint8Array> {
}

// Decrypt received payload to the user
export function decryptStream (handshake: IHandshake): Transform<Uint8Array|Uint8ArrayList> {
export function decryptStream (handshake: IHandshake): Transform<Uint8ArrayList, Uint8Array> {
return async function * (source) {
for await (const chunk of source) {
for (let i = 0; i < chunk.length; i += NOISE_MSG_MAX_LENGTH_BYTES) {
Expand Down