-
kurisu
Any recommendations of an omemo library for C? I found https://github.com/gkdr/libomemo/ and https://github.com/dino/libomemo-c/tree/omemo but they are undocumented. For a moment I considered ffi'ing into Python but turns out https://python-omemo.readthedocs.io/en/latest/usage.html is "just brilliant" too...
-
SavagePeanut
libomemo-c is used by qxmpp
-
SavagePeanut
If an example implementation helps
-
SavagePeanut
Just make sure to verify the HMAC in constant time ;)
-
singpolyma
sleep(rand(2)) 😉
-
Syndace
kuriso: does this getting started look better? ^^ https://py-omemo.readthedocs.io/en/latest/getting_started.html
-
Syndace
there are two python-omemo, an abandoned and this one
-
kurisu
I see async methods there. Does it depend on asyncio?
-
Syndace
yep
-
Syndace
or I guess any async framework
-
kurisu
that makes it not only a matter of ffi'ing but also reconciling event loops.. oh boy. but I guess that's still better than those undocumented libraries with last commits dating back years
-
singpolyma
The crypto hasn't changed so not sure why commits being old matters
-
kurisu
Omemo2
-
singpolyma
Would need a different lib for that I think since the algorithm is different?
-
SavagePeanut
kurisu, libomemo-c is omemo2
-
larma
libomemo-c is C API and supports current omemo