コード例 #1
0
        /**
         * Reset the mac generator.
         */
        public void reset()
        {
            /*
             * clean the buffer.
             */
            for (int i = 0; i < buf.Length; i++)
            {
                buf[i] = 0;
            }

            bufOff = 0;

            /*
             * reset the underlying cipher.
             */
            cipher.reset();
        }
コード例 #2
0
        /**
         * Reset the buffer and cipher. After resetting the object is in the same
         * state as it was after the last init (if there was one).
         */
        public virtual void reset()
        {
            //
            // clean the buffer.
            //
            for (int i = 0; i < buf.Length; i++)
            {
                buf[i] = 0;
            }

            bufOff = 0;

            //
            // reset the underlying cipher.
            //
            cipher.reset();
        }
コード例 #3
0
        /**
         * reset the chaining vector back to the IV and reset the underlying
         * cipher.
         */
        public void reset()
        {
            Array.Copy(IV, 0, cbcV, 0, IV.Length);

            cipher.reset();
        }
コード例 #4
0
 public void reset()
 {
     Array.Copy(IV, 0, counter, 0, counter.Length);
     cipher.reset();
 }
コード例 #5
0
 /**
  * reset the underlying cipher. This leaves it in the same state
  * it was at after the last init (if there was one).
  */
 public void reset()
 {
     cipher.reset();
 }