aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-19Properly track message senderAndreas Straub1-4/+4
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.
2015-07-19Rework PEP content verificationAndreas Straub1-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)
2015-07-19Formatting fixesAndreas Straub1-2/+2
2015-07-19When receiving, add mock session if none existsAndreas Straub1-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.
2015-07-19Fetch bundles on-demand, encrypt in backgroundAndreas Straub1-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.
2015-07-19Use bareJid for own session retrievalAndreas Straub1-1/+1
2015-07-19Migrate to new PEP layoutAndreas Straub1-118/+134
Merge prekeys into bundle node
2015-07-19Formatting fixesAndreas Straub1-22/+22
2015-07-19Save IdentityKeys in databaseAndreas Straub1-47/+23
2015-07-19Reformat code to use tabsAndreas Straub1-825/+825
This really sucks to do it like this. Sorry. :(
2015-07-19Added PEP and message protocol layersAndreas Straub1-0/+208
Can now fetch/retrieve from PEP, as well as encode/decode messages
2015-07-19Reworked axolotl protocol layerAndreas Straub1-38/+272
Numerous fixes
2015-07-19CryptoNext persistance layer mockupAndreas Straub1-0/+440
Initial sketch of the peripheral storage infrastructure for the new axolotl-based encryption scheme.