Class MegolmInboundSession
Inbound Megolm session: decrypts one sender's room messages from the index its key was shared at.
Inheritance
MegolmInboundSession
Namespace: Uniform.Matrix.Protocol.Crypto
Assembly: Uniform.Matrix.Protocol.Crypto.dll
public sealed class MegolmInboundSession : IDisposable
Properties
|
Edit this page
View Source
First message index this session can decrypt.
Declaration
public uint FirstKnownIndex { get; }
Property Value
|
Edit this page
View Source
Session ID: the sender's public signing key, unpadded base64.
Declaration
public string SessionId { get; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public MegolmPlaintext Decrypt(string ciphertext)
Parameters
| Type |
Name |
Description |
| string |
ciphertext |
|
Returns
|
Edit this page
View Source
Declaration
|
Edit this page
View Source
Declaration
public string ExportAt(uint index)
Parameters
| Type |
Name |
Description |
| uint |
index |
|
Returns
|
Edit this page
View Source
Declaration
public static MegolmInboundSession FromPickle(string pickle, ReadOnlySpan<byte> key)
Parameters
Returns
|
Edit this page
View Source
Create a session from a signed session key of m.room_key; throw OlmException when the signature is invalid.
Declaration
public static MegolmInboundSession FromSessionKey(string sessionKey)
Parameters
| Type |
Name |
Description |
| string |
sessionKey |
|
Returns
|
Edit this page
View Source
Create a session from an exported key, e.g. from a key backup or another device; not signed, so the sender is not proven.
Declaration
public static MegolmInboundSession Import(string exportedKey)
Parameters
| Type |
Name |
Description |
| string |
exportedKey |
|
Returns
|
Edit this page
View Source
Pickle the session in vodozemac's format, encrypted with 32-byte key.
Declaration
public string Pickle(ReadOnlySpan<byte> key)
Parameters
Returns
Implements