Class AttachmentCrypto
Encryption of attachments in encrypted rooms: AES-256-CTR, then SHA-256 of the ciphertext.
Inheritance
AttachmentCrypto
Namespace: Uniform.Matrix.Protocol.Crypto
Assembly: Uniform.Matrix.Protocol.Crypto.dll
public static class AttachmentCrypto
Methods
|
Edit this page
View Source
Declaration
public static byte[] Decrypt(ReadOnlySpan<byte> ciphertext, AttachmentKeys keys)
Parameters
Returns
|
Edit this page
View Source
Encrypt a file; upload the ciphertext as application/octet-stream and send the keys in the message.
Declaration
public static (byte[] Ciphertext, AttachmentKeys Keys) Encrypt(ReadOnlySpan<byte> plaintext)
Parameters
Returns