public class SignalOmemoRatchet
extends org.jivesoftware.smackx.omemo.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>
Modifier and Type | Method and Description |
---|---|
byte[] |
doubleRatchetDecrypt(org.jivesoftware.smackx.omemo.internal.OmemoDevice sender,
byte[] encryptedKey) |
org.jivesoftware.smackx.omemo.internal.CiphertextTuple |
doubleRatchetEncrypt(org.jivesoftware.smackx.omemo.internal.OmemoDevice recipient,
byte[] messageKey) |
public byte[] doubleRatchetDecrypt(org.jivesoftware.smackx.omemo.internal.OmemoDevice sender, byte[] encryptedKey) throws org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException, org.jivesoftware.smackx.omemo.exceptions.NoRawSessionException, org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException, org.jivesoftware.smackx.omemo.exceptions.UntrustedOmemoIdentityException
doubleRatchetDecrypt
in class org.jivesoftware.smackx.omemo.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>
org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException
org.jivesoftware.smackx.omemo.exceptions.NoRawSessionException
org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException
org.jivesoftware.smackx.omemo.exceptions.UntrustedOmemoIdentityException
public org.jivesoftware.smackx.omemo.internal.CiphertextTuple doubleRatchetEncrypt(org.jivesoftware.smackx.omemo.internal.OmemoDevice recipient, byte[] messageKey)
doubleRatchetEncrypt
in class org.jivesoftware.smackx.omemo.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>