fix(clearkey): warn when pkcs7 unpad fails and require a 16-byte key from the key uri

This commit is contained in:
imSp4rky
2026-11-26 13:40:06 -07:00
parent 625e632b53
commit 136e9fc84d
3 changed files with 67 additions and 8 deletions
+4
View File
@@ -453,6 +453,10 @@ decrypts each segment in-process with AES-CBC. There is no device, no CDM, and n
license challenge, so you do not set anything up. unshackle decrypts such tracks
automatically during download.
The `EXT-X-KEY` URI must return a content key of exactly 16 bytes, or the download stops with an error.
If a decrypted segment has no valid PKCS7 padding, unshackle keeps the output and
logs one warning for the track, because the content key is possibly wrong.
### ClearKey over CENC (W3C EME `org.w3.clearkey`)
The CENC ClearKey scheme is a proper license flow, but the "license server"