Class SignalOmemoRatchet


  • public class SignalOmemoRatchet
    extends OmemoRatchet<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher>
    • Method Detail

      • doubleRatchetEncrypt

        public CiphertextTuple doubleRatchetEncrypt​(OmemoDevice recipient,
                                                    byte[] messageKey)
        Description copied from class: OmemoRatchet
        Encrypt a messageKey with the double ratchet session of the recipient.
        Specified by:
        doubleRatchetEncrypt in class OmemoRatchet<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher>
        Parameters:
        recipient - recipient of the message.
        messageKey - key we want to encrypt.
        Returns:
        encrypted message key.