Class SignalOmemoRatchet
java.lang.Object
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.signal.SignalOmemoRatchet
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>
-
Field Summary
Fields inherited from class org.jivesoftware.smackx.omemo.OmemoRatchet
omemoManager, store -
Method Summary
Modifier and TypeMethodDescriptionbyte[]doubleRatchetDecrypt(org.jivesoftware.smackx.omemo.internal.OmemoDevice sender, byte[] encryptedKey) org.jivesoftware.smackx.omemo.internal.CiphertextTupledoubleRatchetEncrypt(org.jivesoftware.smackx.omemo.internal.OmemoDevice recipient, byte[] messageKey)
-
Method Details
-
doubleRatchetDecrypt
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, IOException - Specified by:
doubleRatchetDecryptin classorg.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> - Throws:
org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyExceptionorg.jivesoftware.smackx.omemo.exceptions.NoRawSessionExceptionorg.jivesoftware.smackx.omemo.exceptions.CryptoFailedExceptionorg.jivesoftware.smackx.omemo.exceptions.UntrustedOmemoIdentityExceptionIOException
-
doubleRatchetEncrypt
public org.jivesoftware.smackx.omemo.internal.CiphertextTuple doubleRatchetEncrypt(org.jivesoftware.smackx.omemo.internal.OmemoDevice recipient, byte[] messageKey) - Specified by:
doubleRatchetEncryptin classorg.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>
-