-
Notifications
You must be signed in to change notification settings - Fork 22
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
FrameCryptorStateMissingKey and Smoothness #4
Comments
hey @garfieldbear333, thanks for finding these bugs, do you have a minimal repro code? I may need to use debug compilation to track what is going on inside libwebrtc. I tested it on flutter and it seems to work correctly, there is no frame rate drop |
The decrypted code here returns the logic of missingkey, I guess because the unencrypted frame does not contain the correct keyindex in frameTrailer. rtc::Buffer frameTrailer(2);
frameTrailer[0] = date_in[date_in. size() - 2];
frameTrailer[1] = date_in[date_in. size() - 1];
uint8_t ivLength = frameTrailer[0];
uint8_t key_index = frameTrailer[1]; |
|
When decrypting, frameCyrptor.setKeyIndex(0) has already been set. If the decryption party does not encrypt first, the decryption will still fail. This problem only occurs on the iOS platform and not on Android.
|
I tried to use encryption and decryption functions in my live streaming project and found two problems. Can you help me with that?
The text was updated successfully, but these errors were encountered: