revisions
This commit is contained in:
parent
12ccce3016
commit
dafe4884fc
9 changed files with 86 additions and 89 deletions
|
@ -282,11 +282,11 @@ export default class ECE {
|
|||
|
||||
this.streamInfo = {
|
||||
recordSize: rs,
|
||||
fileSize: input.size + 16 * Math.floor(input.size / (rs - 17))
|
||||
fileSize: 21 + input.size + 16 * Math.floor(input.size / (rs - 17))
|
||||
};
|
||||
input = new BlobSliceStream(input, rs, mode);
|
||||
const inputStream = new BlobSliceStream(input, rs, mode);
|
||||
|
||||
const ts = new TransformStream(new ECETransformer(mode, key, rs, salt));
|
||||
this.stream = input.pipeThrough(ts);
|
||||
this.stream = inputStream.pipeThrough(ts);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue