Skip to content
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

Lib signal #41

Open
shargon opened this issue Nov 17, 2024 · 10 comments
Open

Lib signal #41

shargon opened this issue Nov 17, 2024 · 10 comments

Comments

@shargon
Copy link
Contributor

shargon commented Nov 17, 2024

Hi what is the original repository of libsignal that you use? I want to check if it's update because i have troubles with the encryption

@donaldjansen
Copy link
Collaborator

It was not from a repo, all repo's that I found initially had issues, so I wrote one from scratch. I haven't had any issues but tbh I have been off the project for about 6 weeks, work kept me busy so anything could have changed between then and now. What issues are you experiencing ?

@shargon
Copy link
Contributor Author

shargon commented Nov 18, 2024

This one in particular, with some phones i get this exception during time
#40

@luidiva
Copy link

luidiva commented Nov 18, 2024

Hey guys, how are you doing? Is this project production ready? I tested and faced some disconnections. Is there a list with all features and issues?
Thank you!

@donaldjansen
Copy link
Collaborator

Hey guys, how are you doing? Is this project production ready? I tested and faced some disconnections. Is there a list with all features and issues? Thank you!

I wouldn't say it is production ready, there are a few features still to be implemented, however I have a number that has been running stable for 4 months now on it

@donaldjansen
Copy link
Collaborator

Hey guys, how are you doing? Is this project production ready? I tested and faced some disconnections. Is there a list with all features and issues? Thank you!

Do you perhaps have any steps I can do to replicate this ?

@luidiva
Copy link

luidiva commented Nov 19, 2024

Hey guys, how are you doing? Is this project production ready? I tested and faced some disconnections. Is there a list with all features and issues? Thank you!

Do you perhaps have any steps I can do to replicate this ?

I just cloned the repo, started from vs2022 and read qr code. After about 4~5 hours console stopped updating and I got a handshake error in diagnostic events.
I am going to test it again.

@luidiva
Copy link

luidiva commented Nov 19, 2024

After about 5 hours connected error occurred again again:

{"The remote party closed the WebSocket connection without completing the close handshake."}

em System.Net.WebSockets.ManagedWebSocket.ThrowEOFUnexpected()
em System.Net.WebSockets.ManagedWebSocket.d__75.MoveNext()
em System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
em System.Net.WebSockets.ManagedWebSocket.d__641.MoveNext() em System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) em System.Threading.Tasks.ValueTask1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- Fim do rastreamento de pilha do local anterior ---
em BaileysCSharp.Core.Sockets.Client.WebSocketClient.d__5.MoveNext() em C:\Users\Luidi\Downloads\BaileysCSharp-main\BaileysCSharp-main\BaileysCSharp\Core\Sockets\Client\WebSocketClient.cs:linha 66
em BaileysCSharp.Core.Sockets.Client.WebSocketClient.d__4.MoveNext() em C:\Users\Luidi\Downloads\BaileysCSharp-main\BaileysCSharp-main\BaileysCSharp\Core\Sockets\Client\WebSocketClient.cs:linha 39

@luidiva
Copy link

luidiva commented Nov 20, 2024

Just let it connected. After 6 hours I got this error:

image

@donaldjansen
Copy link
Collaborator

Ok this doesn't seem to be coming from the Lib signal, it looks like the keys are getting out of sync. I am investigating it

@shargon
Copy link
Contributor Author

shargon commented Nov 21, 2024

I received this error in noise handler when server send regular_row message, only it happens in one iphone:

System.Security.Cryptography.AuthenticationTagMismatchException: The computed authentication tag did not match the input authentication tag.\r\n at System.Security.Cryptography.AeadCommon.Decrypt(SafeKeyHandle keyHandle, ReadOnlySpan1 nonce, ReadOnlySpan1 associatedData, ReadOnlySpan1 ciphertext, ReadOnlySpan1 tag, Span1 plaintext, Boolean clearPlaintextOnFailure)\r\n at System.Security.Cryptography.AesGcm.Decrypt(ReadOnlySpan1 nonce, ReadOnlySpan1 ciphertext, ReadOnlySpan1 tag, Span1 plaintext, ReadOnlySpan1 associatedData)\r\n at BaileysCSharp.Core.Helper.CryptoUtils.DecryptAESGCM(Span`1 ciphertext, Byte[] encKey, Byte[] iv, Byte[] hash) in BaileysCSharp\Core\Helper\EncryptionHelper.cs:line 121\r\n at BaileysCSharp.Core.Utils.NoiseHandler.Decrypt(Byte[] ciphertext) in BaileysCSharp\Core\Utils\NoiseHandler.cs:line 81\r\n at BaileysCSharp.Core.Utils.NoiseHandler.DecodeFrameNew(Byte[] newData) in BaileysCSharp\Core\Utils\NoiseHandler.cs:line 184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants