#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) #pragma warning disable using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters { /// /// Parameters for tweakable block ciphers. /// public class TweakableBlockCipherParameters : ICipherParameters { private readonly byte[] tweak; private readonly KeyParameter key; public TweakableBlockCipherParameters(KeyParameter key, byte[] tweak) { this.key = key; this.tweak = Arrays.Clone(tweak); } /// /// Gets the key. /// /// the key to use, or null to use the current key. public KeyParameter Key { get { return key; } } /// /// Gets the tweak value. /// /// The tweak to use, or null to use the current tweak. public byte[] Tweak { get { return tweak; } } } } #pragma warning restore #endif