Really glad to see the CM team take a stronger interest in building in security directly into the firmware. We (@guardianproject) just want to do our part to help you avoid headaches down the road.
Both Moxie's TextSecure app and our Gibberbot app (as well as Xabber and Beem) provide proven variations on end-to-end crypto based on the well known Off-the-Record Messaging Protocol. I realize you aren't building a standard XMPP solution here, but the approach to messaging crypto should be the same.
http://www.cypherpunks.ca/otr/Protocol-v3-4.0.0.html
You can find the clean Xabber OTR4J library here:
https://github.com/redsolution/otr4j
TextSecure is here:
https://github.com/WhisperSystems/TextSecure
Really glad to see the CM team take a stronger interest in building in security directly into the firmware. We (@guardianproject) just want to do our part to help you avoid headaches down the road.
Both Moxie's TextSecure app and our Gibberbot app (as well as Xabber and Beem) provide proven variations on end-to-end crypto based on the well known Off-the-Record Messaging Protocol. I realize you aren't building a standard XMPP solution here, but the approach to messaging crypto should be the same.
http://www.cypherpunks.ca/otr/Protocol-v3-4.0.0.html
You can find the clean Xabber OTR4J library here:
https://github.com/redsolution/otr4j
TextSecure is here:
https://github.com/WhisperSystems/TextSecure