public int DoFinal(byte[] outBytes, int outOff) { byte[] res = bOut.ToArray(); res.CopyTo(outBytes, outOff); Reset(); return res.Length; }