aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/crypto (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-19Add basic PEP managemend UI to EditAccountActivityAndreas Straub1-0/+33
EditAccountActivity now show own fingerprint, and gives an option to regenerate local keying material (and wipe all sessions associated with the old keys in the process). It also now displays a list of other own devices, and gives an option to remove all but the current device.
2015-07-19Fix devicelist update handlingAndreas Straub1-0/+5
No longer store own device ID (so that we don't encrypt messages for ourselves), verify that own device ID is present in update list (otherwise republish), reflect update in UI.
2015-07-19Only cache session if successfully establishedAndreas Straub1-1/+6
When receiving a message, only remember the XmppAxolotlSession wrapper if the prospective session was actually established. This prevents us from erroneously adding empty sessions that are never established using received PreKeyWhisperMessages, which would lead to errors if we try to use them for sending.
2015-07-19Return empty set on invalid PEP devicelistAndreas Straub1-1/+2
2015-07-19Trust all IdentityKeysAndreas Straub1-2/+3
The trust-on-first-use policy leads to problems when receiving messages from two different devices of a contact before sending a message to them (as their IdentityKeys will not have been added yet). Since session trust will be managed externally anyway, this change is not a security problem, and will allow us to decrypt messages from yet-untrusted sessions.
2015-07-19Refresh PEP on session establishAndreas Straub1-0/+18
We now track preKeys used to establish incoming sessions with us. On each new established session, we remove the used prekey from PEP. We have to do this because libaxolotl-java internally clears the used preKey from its storage, so we will not be able to establish any future sessions using that key.
2015-07-19Fix asynchronous axolotl message sendingAndreas Straub1-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.
2015-07-19Properly track message senderAndreas Straub2-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.
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-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-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 Straub2-985/+985
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 Straub3-38/+456
Numerous fixes
2015-07-19CryptoNext persistance layer mockupAndreas Straub2-0/+444
Initial sketch of the peripheral storage infrastructure for the new axolotl-based encryption scheme.
2015-07-10renamed HttpConnection to HttpDownloadConnectionDaniel Gultsch1-1/+1
2015-07-10added null check in sasl response verifierDaniel Gultsch1-1/+1
2015-07-01changed mime type handlingDaniel Gultsch1-1/+1
2015-06-30made httpconnection (download) ready all kind of filesDaniel Gultsch1-2/+2
2015-06-30refactored bodyContainsDownloadable to be more flexibleDaniel Gultsch1-1/+1
2015-06-29untested pgp support for http uploadDaniel Gultsch1-5/+9
2015-05-26renamed OtrEngine to OtrServiceDaniel Gultsch1-3/+3
2015-04-21OTR: Fix onContactStatusChanged & dont archive OTRBrianBlade1-1/+1
- Fix session handling on contact status change: Do not reset potentially active sessions; check peer's OTR-resource on disconnect - use no-permanent-store hint instead of no-store to ensure finished messages are delivered to offline/disconnected clients - add no-permanent-store to ask compliant servers not to archive OTR messages
2015-04-01Fix OTR-Error messagesBrianBlade1-16/+22
Send out OTR-Errors on unreadableMessageReceived() as well, not only on messageFromAnotherInstanceReceived
2015-03-21respond to unreadable OTR messages with error message. fixed #1021iNPUTmice1-3/+15
2015-02-21added typing notifications through XEP-0085. fixed #210iNPUTmice1-0/+14
2015-01-20otr4j: update to 0.22Michael1-0/+6
2015-01-11do not check image file size over http if accepted file size is 0Daniel Gultsch1-3/+6
2015-01-02some further otr improvementsDaniel Gultsch1-1/+1
2015-01-02prefer PLAIN over DIGEST-MD5Daniel Gultsch1-1/+1
DIGEST-MD5 seems to be broken for a lot of cases (OpenFire) switched priority of PLAIN to not cause any security errors
2015-01-02improved OTR verification part oneDaniel Gultsch1-3/+3
2014-12-10mark otr messages as no-store for mamiNPUTmice1-0/+1
2014-12-04fixed digest-md5iNPUTmice1-0/+4
2014-12-02Make sure SASL tokenizer strips stringsSam Whited2-1/+5
Fix DIGEST-MD5 auth (make sure we're not splitting on BASE64 `==')
2014-11-21remove unused imports.Michael1-2/+0
2014-11-21verify contacts key only on initiating side of smpiNPUTmice1-3/+7
2014-11-15Don't escape passwords in SASLSam Whited1-2/+2
Fixes #671
2014-11-15Cache SCRAM-SHA-1 keys for current sessionSam Whited1-10/+47
2014-11-15Add auth method pinningSam Whited4-3/+30
2014-11-15some mime and pgp fixes for file transferiNPUTmice1-20/+1
2014-11-15support for pgp filesiNPUTmice1-2/+4
2014-11-15Improve auth error handling and state machineSam Whited4-32/+36
2014-11-14Add SCRAM-SHA1 supportSam Whited6-80/+375
Factor out GS2 tokanization into own class Add authentication exception class Fixes #71
2014-11-12Refactor authentication codeSam Whited3-0/+124