aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/crypto/axolotl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix asynchronous axolotl message sendingAndreas Straub2015-07-191-6/+23
| | | | | | | | | | XmppConnectionService.sendMessage() now dispatches messages to the AxolotlService, where they only are prepared for sending and cached. AxolotlService now triggers a XmppConnectionService.resendMessage(), which then handles sending the cached message packet. This transparently fixes, e.g., handling of messages sent while we are offline.
* Properly track message senderAndreas Straub2015-07-192-11/+12
| | | | | | | Previously, the sender was assumed to be the conversation counterpart. This broke carboned own-device messages. We now track the sender properly, and also set the status (sent by one of the own devices vs received from the counterpart) accordingly.
* Rework PEP content verificationAndreas Straub2015-07-191-47/+61
| | | | | | Now checks which part(s) are out of sync w/ local storage, and updates only those, rather than assuming the entire node corrupt and overwriting it all (especially relevant for preKey list)
* Formatting fixesAndreas Straub2015-07-191-2/+2
|
* When receiving, add mock session if none existsAndreas Straub2015-07-191-1/+1
| | | | | | | | | | We need a session object in order to build a session from a PreKeyWhisperMessage, so add an empty one when none exists on receiving a message. Warning: this will break right now if the session can not be constructed from the received message.There will be an invalid session which will break if we try to send using it.
* Tag messages with originating sessionAndreas Straub2015-07-191-0/+5
| | | | | This can be used later in order to display trust status of messages, as well as for potential resending of messages in case of preKey conflicts.
* Fetch bundles on-demand, encrypt in backgroundAndreas Straub2015-07-191-42/+91
| | | | | | | | | | | Bundles are now fetched on demand when a session needs to be established. This should lessen the chance of changes to the bundles occuring before they're used, as well as lessen the load of fetching bundles. Also, the message encryption is now done in a background thread, as this can be somewhat costly if many sessions are present. This is probably not going to be an issue in real use, but it's good practice anyway.
* Use bareJid for own session retrievalAndreas Straub2015-07-191-1/+1
|
* Migrate to new PEP layoutAndreas Straub2015-07-191-118/+134
| | | | Merge prekeys into bundle node
* Formatting fixesAndreas Straub2015-07-191-22/+22
|
* Save IdentityKeys in databaseAndreas Straub2015-07-191-47/+23
|
* Reformat code to use tabsAndreas Straub2015-07-192-985/+985
| | | | This really sucks to do it like this. Sorry. :(
* Added PEP and message protocol layersAndreas Straub2015-07-191-0/+208
| | | | Can now fetch/retrieve from PEP, as well as encode/decode messages
* Reworked axolotl protocol layerAndreas Straub2015-07-193-38/+456
| | | | Numerous fixes
* CryptoNext persistance layer mockupAndreas Straub2015-07-192-0/+444
Initial sketch of the peripheral storage infrastructure for the new axolotl-based encryption scheme.