aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/crypto/axolotl/XmppAxolotlMessage.java (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-31Provide process function for key transport messageAndreas Straub1-1/+32
2015-07-31Refactor axolotl message processing workflowAndreas Straub1-85/+57
XmppAxolotlMessage is now entirely responsible for handling encryption and decryption of messages, only leveraging XmppAxolotlSession as a packing/unpacking primitive for payload keys. Removed pseudo-dead session generation code step from prepareMessage function, as sessions have been created by invoking the TrustKeysActivity for a while now. Added prepareKeyTransportMessage function, which creates a message with no payload. The key that is packed into the header keyElements can then be used for other purposes (e.g. encrypted file transfer).
2015-07-31Reformat codeAndreas Straub1-14/+14
2015-07-31Change to new wire protocol versionAndreas Straub1-50/+93
2015-07-29Refactor out inner classes, cache trust storeAndreas Straub1-4/+4
Moves SQLiteAxolotlStore and XmppAxolotlSession into proper classes. IdentityKeys trust statuses are now cached in an LruCache to prevent hammering the database when rendering the UI.
2015-07-21Switch payload encryption to AES-GCMAndreas Straub1-11/+17
This also ensures that the IV is generated with proper randomness.
2015-07-20Add purge axolotl key optionAndreas Straub1-2/+5
Can now long-press a key to permanently purge it.
2015-07-20Optimize importsAndreas Straub1-2/+1
2015-07-19Overhauled Message taggingAndreas Straub1-3/+8
Messages are now tagged with the IdentityKey fingerprint of the originating session. IdentityKeys have one of three trust states: undecided (default), trusted, and untrusted/not yet trusted.
2015-07-19Properly track message senderAndreas Straub1-7/+8
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-19Tag messages with originating sessionAndreas Straub1-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.
2015-07-19Reformat code to use tabsAndreas Straub1-160/+160
This really sucks to do it like this. Sorry. :(
2015-07-19Reworked axolotl protocol layerAndreas Straub1-0/+180
Numerous fixes
2015-07-19CryptoNext persistance layer mockupAndreas Straub1-0/+4
Initial sketch of the peripheral storage infrastructure for the new axolotl-based encryption scheme.