/** * 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(); }
/** * 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(); }
/** * 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(); }
public void reset() { Array.Copy(IV, 0, counter, 0, counter.Length); cipher.reset(); }
/** * 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(); }