Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fd7b5164
authored
2016-02-03 14:35:19 -0500
by
brandonocasey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed const DecrypterStep and added it straight to Decrypter
1 parent
c5245660
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
src/decrypter.js
src/decrypter.js
View file @
fd7b516
...
...
@@ -366,12 +366,9 @@ export class AsyncStream extends Stream {
}
}
// the maximum number of bytes to process at one time
const
DecrypterStep
=
4
*
8000
;
export
class
Decrypter
{
constructor
(
encrypted
,
key
,
initVector
,
done
)
{
let
step
=
Decrypter
Step
;
let
step
=
Decrypter
.
STEP
;
let
encrypted32
=
new
Int32Array
(
encrypted
.
buffer
);
let
decrypted
=
new
Uint8Array
(
encrypted
.
byteLength
);
let
i
=
0
;
...
...
@@ -408,7 +405,9 @@ export class Decrypter {
}
}
Decrypter
.
STEP
=
DecrypterStep
;
// the maximum number of bytes to process at one time
// 4 * 8000;
Decrypter
.
STEP
=
32000
;
export
default
{
decrypt
,
...
...
Please
register
or
sign in
to post a comment