Commit Graph

21 Commits

Author SHA1 Message Date
lilia
ffd60c7d94 Remove duplicate identityKey from SessionRecord
This is redundant to the identity key store, and only used to check
internal consistency between sessions and the 'current' remote identity,
though there's no particular reason we can't keep sessions from previous
identity keys.
2016-09-19 20:21:53 -07:00
lilia
081b27daac Remove unused constant
Also tidy up a nearby scope leak.
2016-09-19 20:17:41 -07:00
lilia
8c5c6b6bb0 Add support for numeric fingerprints 2016-08-23 16:05:53 -07:00
lilia
dd4e8375cd Include remote registrationId in encryption result
The signal service requires this field to accompany outgoing ciphertexts.
With this change we can likely remove the correspinding getter from
SessionCipher.
2016-08-11 15:52:27 -07:00
lilia
fbc6554d6f Decrypt against previous sessions
In congruence with the java implementation, attempt to decrypt against
previous session states if decryption fails using the open session.
2016-08-01 12:40:23 -07:00
lilia
bea0c3b792 Don't disable ratcheting when closing a session
It is possible to receive a ratchet-step message for a closed session,
in which case we need these keys around to decrypt it.
2016-07-31 23:20:57 -07:00
lilia
a42fa1e6e1 Fix vim header comment 2016-07-31 23:20:57 -07:00
lilia
c17c1bfa9d Bump version 2016-06-30 12:40:14 -07:00
lilia
162bb9989a Add more debug logging 2016-06-30 12:39:02 -07:00
lilia
374d7115b9 Fix vim header comments 2016-06-30 12:37:44 -07:00
lilia
2977295f80 Increase number of sessions retained
For consistency with the java lib (SessionRecord.java#L18), retain 40
previous sessions states instead of 20.
2016-06-23 21:03:41 -07:00
lilia
312f784a23 Add more detail to log statement 2016-06-23 20:09:08 -07:00
lilia
3815665275 Bump version 2016-06-23 14:15:45 -07:00
lilia
5f890f42d6 Increase number of chains retained
For consistency with the java lib (SessionState.java#L221), retain 5
chains instead of 4.

// FREEBIE
2016-06-23 11:25:15 -07:00
lilia
7a62016387 Remove unused function
Not used since removal of padding operations in 312efe2.
2016-06-21 15:52:07 -07:00
Timothy Cyrus
15acd6ea00 Update README.md
Add code blocks and JavaScript syntax highlighting
2016-06-21 15:50:03 -07:00
lilia
34ea0f6c96 Remove duplicate verifyMAC function 2016-06-21 15:47:59 -07:00
lilia
8e97de2701 Add travis 2016-06-15 13:17:10 -07:00
lilia
352ad16c2c Bump version 2016-06-14 19:30:04 -07:00
lilia
312efe24a2 Remove padding/unpadding operations
These should be handled at the service/application level.
2016-06-14 19:28:55 -07:00
lilia
bfdf169ad2 Version 1.0.0 2016-06-14 17:36:31 -07:00