Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JW8-6113] Implement progressive AES decryption #219

Merged
merged 4 commits into from Jul 1, 2019

Conversation

johnBartos
Copy link

This PR will...

  • Implement progressive software AES decryption

    • Generates new IV based on the previous chunk
    • WebCrypto throws an exception when progressive; therefore, this is software only
  • TypeScript decryption classes

  • Breaking changes:

    • Always uses software decryption if enableSoftwareAES is true
    • Sets enableSoftwareAES to true if using the progressive Fetch loader

Why is this Pull Request needed?

So that we can progressively parse AES-128 encrypted streams

Are there any points in the code the reviewer needs to double check?

Is the removal of the destroy method from the software decrypter OK? I don't believe it's necessary to set those members to null when the reference to the decrypter itself is set to null. Nulling that reference should cause its members to be GC'd

Resolves issues:

JW8-6113

Breaking change: force software AES decrypter if config is true
@johnBartos johnBartos added this to the 8.9.2 milestone Jun 17, 2019
@jwplayer-robot
Copy link

@johnBartos
Copy link
Author

test this please

@jwplayer-robot
Copy link

@jwplayer-robot
Copy link

src/crypt/decrypter.ts Outdated Show resolved Hide resolved
@jwplayer-robot
Copy link

Copy link

@robwalch robwalch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of nitpicks.

tests/unit/controller/buffer-operation-queue.ts Outdated Show resolved Hide resolved
src/crypt/decrypter.ts Outdated Show resolved Hide resolved
@jwplayer-robot
Copy link

@robwalch robwalch deleted the feature/progressive-decrypter branch January 27, 2020 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants