Afaict you are almost there. I think you use the wrong version of libsignal (yours is too new. you should use libsignal-protocol-java 2.4.0)
Hi Paul thanks For your support.
i have tried the code last night it is able to generate all the key store as well as all the keys i can check in my folder as well but when i am trying to encrypt any message it gives me some error like
Exception in thread “main” java.lang.AssertionError: java.security.InvalidKeyException: Illegal key size
Caused by: java.security.InvalidKeyException: Illegal key size
… 10 more
I am attching my src code as well as key structure please help me for the final time.
email@example.com (16.0 KB)
src code : E2E.java (5.4 KB)
Thanks in advanced.
Any chance you are running the code on a windows machine?
In that case you might want to download the Java Cryptography Extension to make it work.
Thanks for your fast response.
I am running on windows 7 now.
Will try to cryptographic extension.
Thanks fir your support.
now i can easily encrypt and decrypt messages on one-to-one chat.
Is there any mechanism using which we can establish E2E in group chat or MUC.
Basically it works the same way. MUCs must be non-anonymous and you have to have all members in your contact list.
Then you can use OmemoManager.encrypt(MultiUserChat, …) method to encrypt messages for a MUC and register an OmemoMucMessageListener to listen for OMEMO muc messages.
Hi paul i got stuck on another problem
for 2 user it is working fine without any issue we can encrypt and decrypt messages easily now but for new user sometimes we found some error like
WARNING: Could not fetch device list of hiren@hiren
@hiren - domain so don’t confuse with that one.
could you please help me to understand this issues.
This probably means, that your user doesn’t have access to hirens deviceList. That might be because your user and hiren didnt subscribe to each others presence (aka didn’t add each other to the roster).
It might also be that hiren didnt publish his deviceList in the first place (for example because his client doesnt support OMEMO). Or maybe the list got deleted for some reason (server restart for example).
Thanks for you response.
i used the same source code for both the client so i think there is no way that client is not supported.
Both user have subscribed to each other but not find any active device in omemo store path.
Might be possible that hiren haven’t publish the device list so is there any way to publish it again to all the users.
Because after some time it got working using the same code so not sure what is going wrong.
I received bug reports in the past which suggesting, that the device list might only get published on the second start of the app (which I cannot reproduce, but maybe this helps you to pin point the issue).
I found discovered bug from openfire server why it is not responding correctly to PEP request.
I have fixed in my local machine and working fine now no need to restart the PC it is working fine now. Bug is sometime null node against the newly created user is inserted into cache memory and when other user asking the information about the node then without asking to DB it throws null object.
I Want to apply this fix to openfire server so i am not sure the process how to do that could you please suggest how to do that?
Thanks for the support.
I’d suggest you to open a ticket in the Openfire forums about that
i don’t know my issue have been taken care or not yet i have to open a ticket.
Don’t know how to do that.
Just make a post in the Openfire category, describe your issue and maybe link to this thread