-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
HLS Encryption with AES-128 and PKCS7 padding #4172
Comments
srs/trunk/src/kernel/srs_kernel_ts.cpp Lines 2802 to 2810 in d70e735
Above code is PCKS7 (PCKS#7) padding. If the buf is not 16-byte alignment, then fill the remaining bytes with the remaining number of bytes.
No, I don't think the padding mentioned in above apple doc is the padding the AES encryption. |
Hello, I am wondering if SRS' support for HLS AES-128 encryption uses PKCS7 padding ?
My understanding from quickly checking the code is that it does not use PKCS7 padding?
srs/trunk/src/kernel/srs_kernel_ts.cpp
Lines 2802 to 2810 in d70e735
srs/trunk/src/kernel/srs_kernel_ts.cpp
Line 2775 in d70e735
It seems like old Apple docs mentioned that there is no padding.. But RFC8216 mentions PCKS7 padding..
I am requesting PKCS7 padding to be added for compatibility with ExoPlayer on Android..
The text was updated successfully, but these errors were encountered: