Example #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="context">Context for engine</param>
        public MdcryptEngine(MdcryptContext context)
        {
            if (context is null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            Context = context;
        }
Example #2
0
 /// <summary>
 /// Executes the protection phase.
 /// </summary>
 /// <param name="context">The working context.</param>
 /// <param name="parameters">The parameters of protection.</param>
 protected abstract void Execute(MdcryptContext context, ProtectionParameters parameters);