using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IcgSoftware.Threema.CoreMsgApi.Results { public class EncryptResult { private readonly byte[] result; private readonly byte[] secret; private readonly byte[] nonce; public EncryptResult(byte[] result, byte[] secret, byte[] nonce) { this.result = result; this.secret = secret; this.nonce = nonce; } /// /// the encrypted data /// public byte[] Result { get { return this.result; } } /// /// the size (in bytes) of the encrypted data /// public int Size { get { return this.result.Length; } } /// /// the nonce that was used for encryption /// public byte[] Nonce { get { return this.nonce; } } /// /// the secret that was used for encryption (only for symmetric encryption, e.g. files) /// public byte[] Secret { get { return secret; } } } }