On Mon, Feb 10, 2020 at 19:36:58 -0300, Micael Silva wrote:
> The HLS standard says about encryption:
>
> "An encryption method of AES-128 signals that Media Segments are completely
> encrypted using the Advanced Encryption Standard (AES) [AES_128] with a
> 128-bit key, Cipher Block Chaining (CBC), and Public-Key Cryptography
> Standards #7 (PKCS7) padding [RFC5652]. CBC is restarted on each segment
> boundary, *using either the Initialization Vector (IV) attribute value or
> the Media Sequence Number as the IV*; see Section 5.2."
>
> In this case the IV for decryption of the first segment should be 0x0, the
> second 0x1 and so on and so forth.

Nice, I wasn't aware of that, and hadn't found the hlsdec code
supporting this. On the other hand, I obviously successfully decrypted
each segment with iv=0. *shrug* (again)

Moritz
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to