/// <summary>
 /// Initializes a new instance of the CkGostR3410KeyWrapParams class.
 /// </summary>
 /// <param name="wrapOID">Data with DER-encoding of the object identifier indicating the data object type of GOST 28147-89</param>
 /// <param name="ukm">Data with UKM</param>
 /// <param name="key">Key handle of a sender for wrapping operation or key handle of a receiver for unwrapping operation</param>
 public CkGostR3410KeyWrapParams(byte[] wrapOID, byte[] ukm, ulong key)
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
         {
             _params40 = new HighLevelAPI40.MechanismParams.CkGostR3410KeyWrapParams(wrapOID, ukm, Convert.ToUInt32(key));
         }
         else
         {
             _params41 = new HighLevelAPI41.MechanismParams.CkGostR3410KeyWrapParams(wrapOID, ukm, Convert.ToUInt32(key));
         }
     }
     else
     {
         if (Platform.StructPackingSize == 0)
         {
             _params80 = new HighLevelAPI80.MechanismParams.CkGostR3410KeyWrapParams(wrapOID, ukm, key);
         }
         else
         {
             _params81 = new HighLevelAPI81.MechanismParams.CkGostR3410KeyWrapParams(wrapOID, ukm, key);
         }
     }
 }
        /// <summary>
        /// Disposes object
        /// </summary>
        /// <param name="disposing">Flag indicating whether managed resources should be disposed</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!this._disposed)
            {
                if (disposing)
                {
                    // Dispose managed objects
                    if (_params40 != null)
                    {
                        _params40.Dispose();
                        _params40 = null;
                    }

                    if (_params41 != null)
                    {
                        _params41.Dispose();
                        _params41 = null;
                    }

                    if (_params80 != null)
                    {
                        _params80.Dispose();
                        _params80 = null;
                    }

                    if (_params81 != null)
                    {
                        _params81.Dispose();
                        _params81 = null;
                    }
                }

                // Dispose unmanaged objects

                _disposed = true;
            }
        }