-
Notifications
You must be signed in to change notification settings - Fork 32
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
missing dtls ciphers? #253
Comments
Show me the wip branch where you are implementing CBC support |
alert 50 is decode_error |
Yep, I saw that from your AlertDesc enum. Here's the branch. The change is hacked in at the moment to see if I could get it working with one of the Tuya supported ciphers. I'm unsure what to use instead of |
I think I may need to retain the cipher instance or grab the IV out of the cipher for reconstruction for CBC, since it can't reuse the same IV for subsequent messages? |
Here is the suite that chrome supports 49195, 49199, 52393, Of these, the following four will be supported by the Tuya 49161, 49171, 49162, 49172, For now, I think it would be better to support "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA | 49161" first |
I also tried implementing that one first but got the same alert error. Any suggestions for the code I have thus far? |
Changing a few parameters is not enough to support Supporting CBC ciphers is tough; We need to implement the following parts of DTLS. Specifically, We need to implement CBCCihper as in the following AEADCipher. this is my wip branch I can't guarantee that I will continue to work on it myself as it may not be worth the effort. |
Understood. I'm unfamiliar with the inner workings of DTLS, out of my element here. I can try picking up where you left off. I'll see if I can pressure Tuya to implement other ciphers as CBC has been deprecated in favor of GCM anyways from what I understand. It's on their 2.0 roadmap, but I don't know when that is. |
I'm trying to connect to Tuya's webrtc endpoint. This works fine in any browser. However, it is failing in werift due to missing ciphers. Here's the supported cipher list from Tuya's client:
This seems to be a combination of various CBC/SHA1 ciphers, which seem to be weak/deprecated. Werift doesn't support any CBC ciphers. I tried to add support for some of these but am getting
alert fatal error
with description of50
while trying to handshake.Cipher suite list: https://docs.microsoft.com/en-us/dotnet/api/system.net.security.tlsciphersuite?view=net-6.0
The text was updated successfully, but these errors were encountered: