Package | Description |
---|---|
org.jivesoftware.smackx.omemo |
Classes and interfaces for OMEMO Encryption.
|
org.jivesoftware.smackx.omemo.signal |
Concrete implementation of OMEMO for smack using the signal-protocol-java library.
|
org.jivesoftware.smackx.omemo.util |
Helper classes and other stuff.
|
Modifier and Type | Method and Description |
---|---|
void |
OmemoService.buildSessionFromOmemoBundle(OmemoManager omemoManager,
OmemoDevice device,
boolean fresh)
Build an OmemoSession for the given OmemoDevice.
|
OmemoVAxolotlElement |
OmemoManager.createKeyTransportElement(byte[] aesKey,
byte[] iv,
OmemoDevice... to)
Create a new KeyTransportElement.
|
ClearTextMessage |
OmemoManager.decrypt(BareJid sender,
Message omemoMessage)
Decrypt an OMEMO message.
|
T_SigPreKey |
OmemoStore.generateOmemoSignedPreKey(T_IdKeyPair identityKeyPair,
int signedPreKeyId)
Generate a new signed preKey.
|
protected Message |
OmemoService.getOmemoRatchetUpdateMessage(OmemoManager omemoManager,
OmemoDevice recipient,
boolean preKeyMessage)
Return a new RatchetUpdateMessage.
|
void |
OmemoManager.initialize()
Initializes the OmemoManager.
|
abstract T_IdKey |
OmemoStore.loadOmemoIdentityKey(OmemoManager omemoManager,
OmemoDevice device)
Load the public identityKey of the device.
|
T_IdKey |
FileBasedOmemoStore.loadOmemoIdentityKey(OmemoManager omemoManager,
OmemoDevice device) |
abstract T_IdKeyPair |
OmemoStore.loadOmemoIdentityKeyPair(OmemoManager omemoManager)
Load our identityKeyPair from storage.
|
T_IdKeyPair |
FileBasedOmemoStore.loadOmemoIdentityKeyPair(OmemoManager omemoManager) |
protected abstract void |
OmemoService.processBundle(OmemoManager omemoManager,
T_Bundle bundle,
OmemoDevice device)
Process a received bundle.
|
void |
OmemoManager.purgeDevices()
Clear all other devices except this one from our device list and republish the list.
|
void |
OmemoManager.regenerate()
Generate fresh identity keys and bundle and publish it to the server.
|
void |
OmemoManager.rotateSignedPreKey()
Rotate the signedPreKey published in our OmemoBundle.
|
protected void |
OmemoService.sendOmemoRatchetUpdateMessage(OmemoManager omemoManager,
OmemoDevice recipient,
boolean preKeyMessage)
Send an OmemoRatchetUpdateMessage to recipient.
|
void |
OmemoManager.sendRatchetUpdateMessage(OmemoDevice recipient)
Send a ratchet update message.
|
Modifier and Type | Method and Description |
---|---|
org.whispersystems.libsignal.state.PreKeyBundle |
SignalOmemoKeyUtil.bundleFromOmemoBundle(OmemoBundleVAxolotlElement bundle,
OmemoDevice contact,
int preKeyId) |
org.whispersystems.libsignal.ecc.ECPublicKey |
SignalOmemoKeyUtil.ellipticCurvePublicKeyFromBytes(byte[] data) |
org.whispersystems.libsignal.state.SignedPreKeyRecord |
SignalOmemoKeyUtil.generateOmemoSignedPreKey(org.whispersystems.libsignal.IdentityKeyPair identityKeyPair,
int currentPreKeyId) |
org.whispersystems.libsignal.IdentityKey |
SignalOmemoKeyUtil.identityKeyFromBytes(byte[] data) |
org.whispersystems.libsignal.IdentityKeyPair |
SignalOmemoKeyUtil.identityKeyPairFromBytes(byte[] data) |
protected void |
SignalOmemoService.processBundle(OmemoManager omemoManager,
org.whispersystems.libsignal.state.PreKeyBundle preKeyBundle,
OmemoDevice contact) |
static void |
SignalOmemoService.setup() |
Modifier and Type | Method and Description |
---|---|
void |
OmemoMessageBuilder.addRecipient(OmemoDevice device)
Add a new recipient device to the message.
|
void |
OmemoMessageBuilder.addRecipient(OmemoDevice device,
boolean ignoreTrust)
Add a new recipient device to the message.
|
abstract T_Bundle |
OmemoKeyUtil.bundleFromOmemoBundle(OmemoBundleVAxolotlElement bundle,
OmemoDevice contact,
int keyId)
Build a crypto-lib specific PreKeyBundle (T_Bundle) using a PreKey from the OmemoBundleElement 'bundle'.
|
HashMap<Integer,T_Bundle> |
OmemoKeyUtil.Bundle.bundles(OmemoBundleVAxolotlElement bundle,
OmemoDevice contact)
Break up the OmemoBundleElement into a list of crypto-lib specific bundles (T_PreKey).
|
abstract T_ECPub |
OmemoKeyUtil.ellipticCurvePublicKeyFromBytes(byte[] data)
Deserialize an elliptic curve public key from bytes.
|
abstract T_SigPreKey |
OmemoKeyUtil.generateOmemoSignedPreKey(T_IdKeyPair identityKeyPair,
int signedPreKeyId)
Generate a new signed preKey.
|
T_IdKey |
OmemoKeyUtil.Bundle.identityKey(OmemoBundleVAxolotlElement bundle)
Extract an IdentityKey from a OmemoBundleElement.
|
abstract T_IdKey |
OmemoKeyUtil.identityKeyFromBytes(byte[] data)
Deserialize an identityKey from a byte array.
|
abstract T_IdKeyPair |
OmemoKeyUtil.identityKeyPairFromBytes(byte[] data)
Deserialize an identityKeyPair from a byte array.
|
T_ECPub |
OmemoKeyUtil.Bundle.preKeyPublic(OmemoBundleVAxolotlElement bundle,
int keyId)
Extract the preKey with id 'keyId' from the bundle.
|
T_ECPub |
OmemoKeyUtil.preKeyPublicFromBytes(byte[] data)
Deserialize a public preKey from bytes.
|
T_ECPub |
OmemoKeyUtil.Bundle.signedPreKeyPublic(OmemoBundleVAxolotlElement bundle)
Extract a signedPreKey from an OmemoBundleElement.
|
T_ECPub |
OmemoKeyUtil.signedPreKeyPublicFromBytes(byte[] data)
Deserialize a public signedPreKey from bytes.
|