Class: OlmDecryption

crypto/algorithms/olm~OlmDecryption

new OlmDecryption(params)

Olm decryption implementation
Parameters:
Name Type Description
params object parameters, as per module:crypto/algorithms/base.DecryptionAlgorithm
Source:

Extends

Methods

_decryptMessage(theirDeviceIdentityKey, message) → {string}

Attempt to decrypt an Olm message
Parameters:
Name Type Description
theirDeviceIdentityKey string Curve25519 identity key of the sender
message object message object, with 'type' and 'body' fields
Source:
Returns:
payload, if decrypted successfully.
Type
string

decryptEvent(event) → {null|module:crypto.DecryptionResult}

Decrypt an event
Parameters:
Name Type Description
event object raw event
Overrides:
Source:
Throws:
if there is a problem decrypting the event
Type
module:crypto/algorithms/base.DecryptionError
Returns:

onRoomKeyEvent(event)

Handle a key event
Parameters:
Name Type Description
event module:models/event.MatrixEvent key event
Inherited From:
Source: