Skip to content

possible bug in initializeSenderSession #31

@gardenia

Description

@gardenia

Hi,

I wanted to run past you a possible bug I ran across in ratchet.go when debuggingg a problem I have been having with handshakes. here is a link to the specific line:

https://github.com/janimo/textsecure/blob/master/axolotl/ratchet.go#L196

when I compare against the java (and python) implementations of RatchetingsSession I see the equivalent code in those implementations using the derivedKeys.chainKey (rather than the sendingChain.chainKey):

https://github.com/WhisperSystems/libsignal-protocol-java/blob/master/java/src/main/java/org/whispersystems/libsignal/ratchet/RatchetingSession.java#L82

here is a patch which changes the behavior as above and which works for me (correctly handles the cases I've been having trouble with).

ratchet_diff.txt

I just wanted to check with you if there was any deliberate reason for deviating from how those other implementations handle it.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions